| Modifier and Type | Field and Description |
|---|---|
private byte[] |
contents |
private MetaData |
metaData |
private java.lang.String |
name |
| Constructor and Description |
|---|
ArchiveEntryDocument(java.io.File file,
byte[] contents) |
| 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.
|
java.lang.String |
toString()
Representations suitable for logging.
|
private byte[] contents
private final java.lang.String name
private final MetaData metaData
public ArchiveEntryDocument(java.io.File file,
byte[] contents)
throws RatException
RatExceptionpublic 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 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 java.lang.String toString()
toString in class java.lang.ObjectString representation
of this object.