org.apache.cocoon.reading
Class DirectoryZipArchiver
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.reading.AbstractReader
org.apache.cocoon.reading.DirectoryZipArchiver
- All Implemented Interfaces:
- LogEnabled, Poolable, Reader, Recyclable, SitemapModelComponent, SitemapOutputComponent
- public class DirectoryZipArchiver
- extends AbstractReader
The DirectoryZipArchiver
component creates a compressed zip
archive of the files contained in the directory passed with 'src'.
NOTE (SM): no content-length information is passed to the user since we
can't estimate it before actually performing the compression.
- Version:
- CVS $Id: DirectoryZipArchiver.java 30941 2004-07-29 19:56:58Z vgritsenko $
- Author:
- Stefano Mazzocchi
Fields inherited from interface org.apache.cocoon.reading.Reader |
ROLE |
Method Summary |
void |
generate()
Generates the requested resource. |
String |
getMimeType()
Returns the mime-type of the resource in process. |
protected void |
read(File file,
OutputStream out)
Reads the given file in the given output stream. |
void |
setup(SourceResolver resolver,
Map objectModel,
String src,
Parameters par)
Set the SourceResolver the object model Map ,
the source and sitemap Parameters used to process the request. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectoryZipArchiver
public DirectoryZipArchiver()
setup
public void setup(SourceResolver resolver,
Map objectModel,
String src,
Parameters par)
throws ProcessingException,
SAXException,
IOException
- Description copied from class:
AbstractReader
- Set the
SourceResolver
the object model Map
,
the source and sitemap Parameters
used to process the request.
- Specified by:
setup
in interface SitemapModelComponent
- Overrides:
setup
in class AbstractReader
- Throws:
ProcessingException
SAXException
IOException
generate
public void generate()
throws IOException,
ProcessingException
- Generates the requested resource.
- Throws:
IOException
ProcessingException
getMimeType
public String getMimeType()
- Returns the mime-type of the resource in process.
- Specified by:
getMimeType
in interface SitemapOutputComponent
- Overrides:
getMimeType
in class AbstractReader
read
protected void read(File file,
OutputStream out)
throws IOException
- Reads the given file in the given output stream.
- Throws:
IOException
Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.