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
IOException
public InputStream openInputStream() throws IOException
openInputStream
in interface DocumentSource
IOException
public long getContentLength()
getContentLength
in interface DocumentSource
public String getDocumentURI()
getDocumentURI
in interface DocumentSource
public String getContentType()
getContentType
in interface DocumentSource
public boolean isLocal()
isLocal
in interface DocumentSource
Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.