rat.document.impl
Class CompositeDocument

java.lang.Object
  extended by rat.document.impl.CompositeDocument
All Implemented Interfaces:
IDocument, IResource
Direct Known Subclasses:
ZipFileDocument

public abstract class CompositeDocument
extends Object
implements IDocument

Composed from a set of archived documents.


Constructor Summary
CompositeDocument(String name)
           
 
Method Summary
 String getName()
           
 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
 
Methods inherited from interface rat.document.IDocument
readArchive
 

Constructor Detail

CompositeDocument

public CompositeDocument(String name)
Method Detail

reader

public Reader reader()
              throws IOException
Description copied from interface: IDocument
Reads the content of this document.

Specified by:
reader in interface IDocument
Returns:
Reader not null
Throws:
IOException - if this document cannot be read
CompositeDocumentException - if this document can only be read as a composite archive

getName

public String getName()
Specified by:
getName in interface IResource


Copyright © 2006-2011. All Rights Reserved.