| Constructor and Description |
|---|
ArchiveEntryDocument(File file,
byte[] contents) |
| 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 ArchiveEntryDocument(File file, byte[] contents) throws RatException
RatExceptionpublic MetaData getMetaData()
DocumentgetMetaData in interface Documentpublic InputStream inputStream() throws IOException
DocumentinputStream in interface DocumentIOException - when stream could not be openedpublic 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 archiveCopyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.