Constructor and Description |
---|
FileDocument(File file) |
Modifier and Type | Method and Description |
---|---|
MetaData |
getMetaData()
Gets data describing this resource.
|
String |
getName() |
InputStream |
inputStream()
Streams the document's contents.
|
boolean |
isComposite()
Is this a composite document?
|
Reader |
reader()
Reads the content of this document.
|
String |
toString()
Representations suitable for logging.
|
public FileDocument(File file)
public boolean isComposite()
Document
isComposite
in interface Document
public Reader reader() throws IOException
Document
reader
in interface Document
Reader
not nullIOException
- if this document cannot be readCompositeDocumentException
- if this document can only be read as
a composite archivepublic MetaData getMetaData()
Document
getMetaData
in interface Document
public InputStream inputStream() throws IOException
Document
inputStream
in interface Document
IOException
- when stream could not be openedCopyright © 2006–2018 Apache Software Foundation. All rights reserved.