public class ByteArrayDocumentSource extends Object implements DocumentSource
DocumentSource.| Constructor and Description |
|---|
ByteArrayDocumentSource(byte[] bytes,
String documentURI,
String contentType) |
ByteArrayDocumentSource(InputStream inputStream,
String documentURI,
String contentType) |
| Modifier and Type | Method and Description |
|---|---|
long |
getContentLength() |
String |
getContentType() |
String |
getDocumentURI() |
boolean |
isLocal() |
InputStream |
openInputStream() |
public ByteArrayDocumentSource(byte[] bytes,
String documentURI,
String contentType)
public ByteArrayDocumentSource(InputStream inputStream, String documentURI, String contentType) throws IOException
IOExceptionpublic InputStream openInputStream() throws IOException
openInputStream in interface DocumentSourceIOExceptionpublic long getContentLength()
getContentLength in interface DocumentSourcepublic String getDocumentURI()
getDocumentURI in interface DocumentSourcepublic String getContentType()
getContentType in interface DocumentSourcepublic boolean isLocal()
isLocal in interface DocumentSourceCopyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.