org.apache.rat.document.impl.zip
Class ZipFileDocument

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

public class ZipFileDocument
extends CompositeDocument

Document which is a zip file.


Constructor Summary
ZipFileDocument(java.io.File file)
           
 
Method Summary
 IDocumentCollection readArchive()
          Reads contents of composite document.
 
Methods inherited from class org.apache.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(java.io.File file)
Method Detail

readArchive

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

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


Copyright © 2006-2009 The Apache Software Foundation. All Rights Reserved.