public class MonolithicFileDocument extends AbstractMonolithicDocument
| Modifier and Type | Field and Description |
|---|---|
private java.io.File |
file |
private static java.lang.String |
FILE_URL_PREFIX |
private static java.lang.String |
UTF_8 |
| Constructor and Description |
|---|
MonolithicFileDocument(java.io.File file) |
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
inputStream()
Streams the document's contents.
|
static Document |
newInstance(java.net.URL url) |
java.io.Reader |
reader()
Reads the content of this document.
|
getMetaData, getName, isCompositeprivate static final java.lang.String UTF_8
private static final java.lang.String FILE_URL_PREFIX
private final java.io.File file
public static Document newInstance(java.net.URL url)
url - The document is read from the given URL.public java.io.Reader reader()
throws java.io.IOException
DocumentReader not nulljava.io.IOException - if this document cannot be readCompositeDocumentException - if this document can only be read as
a composite archivepublic java.io.InputStream inputStream()
throws java.io.IOException
Documentjava.io.IOException - when stream could not be opened