public interface DocumentSource
| Modifier and Type | Method and Description |
|---|---|
long |
getContentLength() |
String |
getContentType() |
String |
getDocumentIRI() |
boolean |
isLocal()
A value of false indicates that the document
resides remotely, and that multiple successive accesses
to it should be avoided by copying it to local storage.
|
InputStream |
openInputStream()
Returns the input stream for accessing the content of the document.
|
InputStream openInputStream() throws IOException
null input stream for accessing document data.IOException - if there is an error opening the
DocumentSource InputStreamString getContentType()
long getContentLength()
String getDocumentIRI()
boolean isLocal()
openInputStream().DocumentSource is
cached locally.Copyright © 2010–2019 The Apache Software Foundation. All rights reserved.