|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.rat.document.impl.FileDocument
public class FileDocument
Document wrapping a file of undetermined composition.
| Constructor Summary | |
|---|---|
FileDocument(java.io.File file,
IFileUnarchiver unarchiver)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getName()
|
IDocumentCollection |
readArchive()
Reads contents of composite document. |
java.io.Reader |
reader()
Reads the content of this document. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileDocument(java.io.File file,
IFileUnarchiver unarchiver)
| Method Detail |
|---|
public IDocumentCollection readArchive()
throws java.io.IOException
IDocument
readArchive in interface IDocumentIDocumentCollection, not null
java.io.IOException - if the document cannot be read
UnreadableArchiveException - if this document is not an archive
or if this document is unreadable
public java.io.Reader reader()
throws java.io.IOException
IDocument
reader in interface IDocumentReader not null
java.io.IOException - if this document cannot be read
CompositeDocumentException - if this document can only be read as
a composite archivepublic java.lang.String getName()
getName in interface IResource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||