HPSearch

cgl.hpsearch.engine.URIBindings
Class URIUtils

java.lang.Object
  extended bycgl.hpsearch.engine.URIBindings.URIUtils
All Implemented Interfaces:
URIType

public class URIUtils
extends Object
implements URIType

Factory based URI Utility class
TODO: Rename to URIFactory
Created on Apr 21, 2004

Author:
Harshawardhan Gadgil (hgadgil@grids.ucs.indiana.edu)

Field Summary
 
Fields inherited from interface cgl.hpsearch.engine.URIBindings.URIType
DB_CONN, FILE, HTTP_FTP, IP_PORT, STREAM, UNDEFINED
 
Constructor Summary
URIUtils()
           
 
Method Summary
static InputStream getInputStream(String inURI)
          Returns the input stream object for the given URI
static OutputStream getOutputStream(String outURI)
          Returns the output stream for the given URI
static URIInfo parseURI(String token)
          Parses the given token and finds the type of URI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URIUtils

public URIUtils()
Method Detail

getInputStream

public static InputStream getInputStream(String inURI)
Returns the input stream object for the given URI

Parameters:
inURI - The input URI
Returns:
InputStream for the resource

getOutputStream

public static OutputStream getOutputStream(String outURI)
Returns the output stream for the given URI

Parameters:
outURI - The URI
Returns:
OutputStream object representing the URI.

parseURI

public static URIInfo parseURI(String token)
Parses the given token and finds the type of URI

Parameters:
token - the URI to be parsed
Returns:
String representing the modified URI string with removed prefixes

HPSearch

For comments and suggestions please send e-mail to Harshawardhan Gadgil
Last updated: June 9 2006