Package org.apache.any23.source
Class StringDocumentSource
- java.lang.Object
-
- org.apache.any23.source.StringDocumentSource
-
- All Implemented Interfaces:
org.apache.any23.source.DocumentSource
public class StringDocumentSource extends Object implements org.apache.any23.source.DocumentSource
String implementation ofDocumentSource.
-
-
Constructor Summary
Constructors Constructor Description StringDocumentSource(String in, String uri)StringDocumentSource(String in, String uri, String contentType)StringDocumentSource(String in, String uri, String contentType, String encoding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetContentLength()StringgetContentType()StringgetDocumentIRI()booleanisLocal()InputStreamopenInputStream()
-
-
-
Method Detail
-
openInputStream
public InputStream openInputStream() throws IOException
- Specified by:
openInputStreamin interfaceorg.apache.any23.source.DocumentSource- Throws:
IOException
-
getContentLength
public long getContentLength()
- Specified by:
getContentLengthin interfaceorg.apache.any23.source.DocumentSource
-
getDocumentIRI
public String getDocumentIRI()
- Specified by:
getDocumentIRIin interfaceorg.apache.any23.source.DocumentSource
-
getContentType
public String getContentType()
- Specified by:
getContentTypein interfaceorg.apache.any23.source.DocumentSource
-
isLocal
public boolean isLocal()
- Specified by:
isLocalin interfaceorg.apache.any23.source.DocumentSource
-
-