public class MonolithicFileDocument extends AbstractMonolithicDocument
Constructor and Description |
---|
MonolithicFileDocument(File file) |
Modifier and Type | Method and Description |
---|---|
InputStream |
inputStream()
Streams the document's contents.
|
static Document |
newInstance(URL url) |
Reader |
reader()
Reads the content of this document.
|
getMetaData, getName, isComposite
public MonolithicFileDocument(File file)
public static Document newInstance(URL url)
url
- The document is read from the given URL.public Reader reader() throws IOException
Document
Reader
not nullIOException
- if this document cannot be readCompositeDocumentException
- if this document can only be read as
a composite archivepublic InputStream inputStream() throws IOException
Document
IOException
- when stream could not be openedCopyright © 2006–2018 Apache Software Foundation. All rights reserved.