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 java.lang.Object
implements IDocument

Composed from a set of archived documents.


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

Constructor Detail

CompositeDocument

public CompositeDocument(java.lang.String name)
Method Detail

reader

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

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

getName

public java.lang.String getName()
Specified by:
getName in interface IResource


Copyright © 2006-2008. All Rights Reserved.