private class FilesReportable.FileDocument extends java.lang.Object implements Document
| Modifier and Type | Field and Description |
|---|---|
private java.io.File |
file |
private MetaData |
metaData |
| Modifier | Constructor and Description |
|---|---|
private |
FileDocument() |
| Modifier and Type | Method and Description |
|---|---|
MetaData |
getMetaData()
Gets data describing this resource.
|
java.lang.String |
getName() |
java.io.InputStream |
inputStream()
Streams the document's contents.
|
boolean |
isComposite()
Is this a composite document?
|
java.io.Reader |
reader()
Reads the content of this document.
|
(package private) void |
setFile(java.io.File file) |
java.lang.String |
toString() |
private java.io.File file
private final MetaData metaData
void setFile(java.io.File file)
public boolean isComposite()
DocumentisComposite in interface Documentpublic java.io.Reader reader()
throws java.io.IOException
Documentreader in interface DocumentReader not nulljava.io.IOException - if this document cannot be readCompositeDocumentException - if this document can only be read as
a composite archivepublic MetaData getMetaData()
DocumentgetMetaData in interface Documentpublic java.io.InputStream inputStream()
throws java.io.IOException
DocumentinputStream in interface Documentjava.io.IOException - when stream could not be openedpublic java.lang.String toString()
toString in class java.lang.Object