rat.document.impl.zip
Class ZipFileDocument

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

public class ZipFileDocument
extends CompositeDocument

Document which is a zip file.


Constructor Summary
ZipFileDocument(File file)
           
 
Method Summary
 IDocumentCollection readArchive()
          Reads contents of composite document.
 
Methods inherited from class rat.document.impl.CompositeDocument
getName, reader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipFileDocument

public ZipFileDocument(File file)
Method Detail

readArchive

public IDocumentCollection readArchive()
                                throws IOException
Description copied from interface: IDocument
Reads contents of composite document.

Returns:
IDocumentCollection, not null
Throws:
IOException - if the document cannot be read
UnreadableArchiveException - if this document is not an archive or if this document is unreadable


Copyright © 2006-2011. All Rights Reserved.