Class UrlStreamConnector
- java.lang.Object
-
- net.anwiba.commons.reference.utilities.UrlStreamConnector
-
- All Implemented Interfaces:
IStreamConnector<java.net.URI>
public final class UrlStreamConnector extends java.lang.Object implements IStreamConnector<java.net.URI>
-
-
Constructor Summary
Constructors Constructor Description UrlStreamConnector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanRead(java.net.URI uri)booleancanWrite(java.net.URI uri)booleanexist(java.net.URI uri)longgetContentLength(java.net.URI uri)java.lang.StringgetContentType(java.net.URI uri)java.io.InputStreamopenInputStream(java.net.URI uri)java.io.InputStreamopenInputStream(java.net.URI uri, IAcceptor<java.lang.String> contentTypeAcceptor)java.io.OutputStreamopenOutputStream(java.net.URI uri)
-
-
-
Method Detail
-
exist
public boolean exist(java.net.URI uri)
- Specified by:
existin interfaceIStreamConnector<java.net.URI>
-
canRead
public boolean canRead(java.net.URI uri)
- Specified by:
canReadin interfaceIStreamConnector<java.net.URI>
-
canWrite
public boolean canWrite(java.net.URI uri)
- Specified by:
canWritein interfaceIStreamConnector<java.net.URI>
-
openInputStream
public java.io.InputStream openInputStream(java.net.URI uri, IAcceptor<java.lang.String> contentTypeAcceptor) throws java.io.IOException- Specified by:
openInputStreamin interfaceIStreamConnector<java.net.URI>- Throws:
java.io.IOException
-
openInputStream
public java.io.InputStream openInputStream(java.net.URI uri) throws java.io.IOException- Specified by:
openInputStreamin interfaceIStreamConnector<java.net.URI>- Throws:
java.io.IOException
-
openOutputStream
public java.io.OutputStream openOutputStream(java.net.URI uri) throws java.io.IOException- Specified by:
openOutputStreamin interfaceIStreamConnector<java.net.URI>- Throws:
java.io.IOException
-
getContentLength
public long getContentLength(java.net.URI uri) throws java.io.IOException- Specified by:
getContentLengthin interfaceIStreamConnector<java.net.URI>- Throws:
java.io.IOException
-
getContentType
public java.lang.String getContentType(java.net.URI uri) throws java.io.IOException- Specified by:
getContentTypein interfaceIStreamConnector<java.net.URI>- Throws:
java.io.IOException
-
-