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
RatException
public MetaData getMetaData()
Document
getMetaData
in interface Document
public InputStream inputStream() throws IOException
Document
inputStream
in interface Document
IOException
- when stream could not be openedpublic 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 archiveCopyright © 2006-2017 The Apache Software Foundation. All Rights Reserved.