Provided by: tcllib_1.17-dfsg-1_all bug

NAME

       zipfile::encode - Generation of zip archives

SYNOPSIS

       package require Tcl  8.4

       package require logger

       package require Trf

       package require crc32

       package require snit

       package require zlibtcl

       package require fileutil

       package require zipfile::encode  ?0.3?

       ::zipfile::encode ?objectName?

       <encoder> comment: text

       <encoder> file: dst owned src

       <encoder> write archive

_________________________________________________________________________________________________

DESCRIPTION

       This package provides a class for the generation of zip archives.

CLASS API

       ::zipfile::encode ?objectName?
              The  class  command  constructs  encoder instances, i.e. objects. The result of the
              command is the fully-qualified name of the instance command.

              If no objectName is specified the class will generate and use an automatic name. If
              the  objectName  was  specified,  but  is  not  fully qualified the command will be
              created in the current namespace.

INSTANCE API

       <encoder> comment: text
              This method specifies the text of the global comment for the archive.   The  result
              of  the  method  is the empty string.  In case of multiple calls to this method for
              the same encoder the data from the last call prevails over all previous texts.

       <encoder> file: dst owned src
              This method adds a new file to the archive.  The contents of the file are found  in
              the  filesystem  at  src, and will be stored in the archive under path dst.  If the
              file is declared as owned by the archive the original file will be deleted when the
              archive is constructed and written.  The result of the method is an empty string.

       <encoder> write archive
              This  method  takes  the  global comment and all added files, encodes them as a zip
              archive and stores the result at path archive in the filesystem.  All  added  files
              which were owned by the archive are deleted at this point.

BUGS, IDEAS, FEEDBACK

       This  document,  and  the  package  it  describes, will undoubtedly contain bugs and other
       problems.   Please  report  such  in  the  category  zipfile  of   the   Tcllib   Trackers
       [http://core.tcl.tk/tcllib/reportlist].  Please also report any ideas for enhancements you
       may have for either package and/or documentation.

KEYWORDS

       compression, zip

CATEGORY

       File

COPYRIGHT

       Copyright (c) 2008-2009 Andreas Kupries