com.xmlcalabash.extensions
Class Zip

java.lang.Object
  extended by com.xmlcalabash.library.DefaultStep
      extended by com.xmlcalabash.extensions.Zip
All Implemented Interfaces:
XProcRunnable, XProcStep

public class Zip
extends DefaultStep

Author:
ndw

Field Summary
protected static net.sf.saxon.s9api.QName _command
           
protected static net.sf.saxon.s9api.QName _comment
           
protected static net.sf.saxon.s9api.QName _compressed_size
           
protected static net.sf.saxon.s9api.QName _compression_level
           
protected static net.sf.saxon.s9api.QName _compression_method
           
protected static net.sf.saxon.s9api.QName _date
           
protected static net.sf.saxon.s9api.QName _href
           
protected static net.sf.saxon.s9api.QName _name
           
protected static net.sf.saxon.s9api.QName _size
           
protected static net.sf.saxon.s9api.QName c_directory
           
protected static net.sf.saxon.s9api.QName c_entry
           
protected static net.sf.saxon.s9api.QName c_file
           
protected static net.sf.saxon.s9api.QName c_zip_manifest
           
protected static net.sf.saxon.s9api.QName c_zipfile
           
 
Fields inherited from class com.xmlcalabash.library.DefaultStep
_byte_order_mark, _cdata_section_elements, _doctype_public, _doctype_system, _encoding, _escape_uri_attributes, _include_content_type, _indent, _media_type, _method, _normalization_form, _omit_xml_declaration, _standalone, _undeclare_prefixes, _version, logger, runtime, step
 
Constructor Summary
Zip(XProcRuntime runtime, XAtomicStep step)
          Creates a new instance of Unzip
 
Method Summary
 void delete(java.util.zip.ZipFile inZip, java.util.zip.ZipOutputStream outZip)
           
 net.sf.saxon.s9api.Serializer makeSerializer(java.util.Hashtable<net.sf.saxon.s9api.QName,java.lang.String> options)
           
 void reset()
           
 void run()
           
 void setInput(java.lang.String port, ReadablePipe pipe)
           
 void setOutput(java.lang.String port, WritablePipe pipe)
           
 void update(java.util.zip.ZipFile inZip, java.util.zip.ZipOutputStream outZip, boolean freshen)
           
 
Methods inherited from class com.xmlcalabash.library.DefaultStep
error, evaluateXPath, fine, finer, finest, getOption, getOption, getOption, getOption, getOption, getStep, info, makeSerializer, setOption, setParameter, setParameter, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_href

protected static final net.sf.saxon.s9api.QName _href

_name

protected static final net.sf.saxon.s9api.QName _name

_command

protected static final net.sf.saxon.s9api.QName _command

_compression_method

protected static final net.sf.saxon.s9api.QName _compression_method

_compression_level

protected static final net.sf.saxon.s9api.QName _compression_level

c_zip_manifest

protected static final net.sf.saxon.s9api.QName c_zip_manifest

c_zipfile

protected static final net.sf.saxon.s9api.QName c_zipfile

c_entry

protected static final net.sf.saxon.s9api.QName c_entry

c_file

protected static final net.sf.saxon.s9api.QName c_file

c_directory

protected static final net.sf.saxon.s9api.QName c_directory

_compressed_size

protected static final net.sf.saxon.s9api.QName _compressed_size

_comment

protected static final net.sf.saxon.s9api.QName _comment

_size

protected static final net.sf.saxon.s9api.QName _size

_date

protected static final net.sf.saxon.s9api.QName _date
Constructor Detail

Zip

public Zip(XProcRuntime runtime,
           XAtomicStep step)
Creates a new instance of Unzip

Method Detail

setInput

public void setInput(java.lang.String port,
                     ReadablePipe pipe)
Specified by:
setInput in interface XProcStep
Overrides:
setInput in class DefaultStep

setOutput

public void setOutput(java.lang.String port,
                      WritablePipe pipe)
Specified by:
setOutput in interface XProcStep
Overrides:
setOutput in class DefaultStep

reset

public void reset()
Specified by:
reset in interface XProcRunnable
Overrides:
reset in class DefaultStep

run

public void run()
         throws net.sf.saxon.s9api.SaxonApiException
Specified by:
run in interface XProcRunnable
Overrides:
run in class DefaultStep
Throws:
net.sf.saxon.s9api.SaxonApiException

update

public void update(java.util.zip.ZipFile inZip,
                   java.util.zip.ZipOutputStream outZip,
                   boolean freshen)

delete

public void delete(java.util.zip.ZipFile inZip,
                   java.util.zip.ZipOutputStream outZip)

makeSerializer

public net.sf.saxon.s9api.Serializer makeSerializer(java.util.Hashtable<net.sf.saxon.s9api.QName,java.lang.String> options)