be.re.repo.mod
Class ZipCollectionFactory

java.lang.Object
  extended by be.re.repo.mod.ZipCollectionFactory
All Implemented Interfaces:
XMLOutputFactory

public class ZipCollectionFactory
extends Object
implements XMLOutputFactory

Transforms a WebDAV-collection encoded in a PROPFIND response to a ZIP file.

Author:
Werner Donné

Constructor Summary
ZipCollectionFactory()
           
 
Method Summary
 XMLEventWriter create(String vcr, String version, String systemId, OutputStream out, String mimeType, Context context)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipCollectionFactory

public ZipCollectionFactory()
Method Detail

create

public XMLEventWriter create(String vcr,
                             String version,
                             String systemId,
                             OutputStream out,
                             String mimeType,
                             Context context)
                      throws XMLStreamException
Specified by:
create in interface XMLOutputFactory
Parameters:
vcr - the local path of the VCR.
version - the local path of the version.
systemId - the system identifier of the resource.
out - the stream to which the transformed document should written.
mimeType - the MIME type of the resource.
context - the repository context.
Returns:
The StAX stream into which the PROPFIND response will be written.
Throws:
XMLStreamException