cgl.hpsearch.engine.URIBindings
Class URIUtils
java.lang.Object
cgl.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)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URIUtils
public URIUtils()
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