| 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()
DocumentisComposite in interface Documentpublic Reader reader() throws IOException
Documentreader in interface DocumentReader not nullIOException - if this document cannot be readCompositeDocumentException - if this document can only be read as
a composite archivepublic MetaData getMetaData()
DocumentgetMetaData in interface Documentpublic InputStream inputStream() throws IOException
DocumentinputStream in interface DocumentIOException - when stream could not be openedCopyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.