|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.rat.document.impl.ArchiveEntryDocument
public class ArchiveEntryDocument
| Constructor Summary | |
|---|---|
ArchiveEntryDocument(File file,
byte[] contents)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ArchiveEntryDocument(File file,
byte[] contents)
throws RatException
RatException| Method Detail |
|---|
public MetaData getMetaData()
Document
getMetaData in interface Documentpublic String getName()
getName in interface Document
public InputStream inputStream()
throws IOException
Document
inputStream in interface DocumentIOException - when stream could not be openedpublic boolean isComposite()
Document
isComposite in interface Document
public Reader reader()
throws IOException
Document
reader in interface DocumentReader not null
IOException - if this document cannot be read
CompositeDocumentException - if this document can only be read as
a composite archivepublic String toString()
toString in class ObjectString representation
of this object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||