Package net.anwiba.commons.reference.io
Interface IStreamConnector<T>
-
- All Known Implementing Classes:
UrlStreamConnector
public interface IStreamConnector<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanRead(T uri)booleancanWrite(T uri)booleanexist(T uri)longgetContentLength(java.net.URI uri)java.lang.StringgetContentType(java.net.URI uri)java.io.InputStreamopenInputStream(java.net.URI uri, IAcceptor<java.lang.String> contentTypeAcceptor)java.io.InputStreamopenInputStream(T uri)java.io.OutputStreamopenOutputStream(T uri)
-
-
-
Method Detail
-
exist
boolean exist(T uri)
-
canRead
boolean canRead(T uri)
-
canWrite
boolean canWrite(T uri)
-
openInputStream
java.io.InputStream openInputStream(java.net.URI uri, IAcceptor<java.lang.String> contentTypeAcceptor) throws java.io.IOException- Throws:
java.io.IOException
-
openInputStream
java.io.InputStream openInputStream(T uri) throws java.io.IOException
- Throws:
java.io.IOException
-
openOutputStream
java.io.OutputStream openOutputStream(T uri) throws java.io.IOException
- Throws:
java.io.IOException
-
getContentLength
long getContentLength(java.net.URI uri) throws java.io.IOException- Throws:
java.io.IOException
-
getContentType
java.lang.String getContentType(java.net.URI uri) throws java.io.IOException- Throws:
java.io.IOException
-
-