Node Director
|
store a number of files in one stream. More...
Public Member Functions | |
ZipArchive (OutputStream out) | |
ZipArchive (InputStream in) | |
void | close () throws DirectorException |
void | store (File file, String name) throws DirectorException |
File | extract (File directory, File target) throws DirectorException |
void | skip () throws DirectorException |
DBObject | lookAhead () throws DirectorException |
Public Member Functions inherited from sfi.director.util.Archive | |
Archive (InputStream input) | |
Archive (OutputStream output) | |
void | storeAll (File directory) throws DirectorException |
void | storeAll (File directory, String name) throws DirectorException |
void | filter (ArchiveFilter filter) |
ArchiveFilter | filter () |
File | extractAs (File file) throws DirectorException |
File | extract (File directory) throws DirectorException |
String | nextFileName () throws DirectorException |
long | nextLastModified () throws DirectorException |
void | extractAll (File directory) throws DirectorException |
Additional Inherited Members | |
Protected Member Functions inherited from sfi.director.util.Archive | |
void | finalize () |
void | getChunk (byte[] buffer, int size) throws DirectorException |
Protected Attributes inherited from sfi.director.util.Archive | |
InputStream | input |
OutputStream | output |
DecimalFormat | lengthField = new DecimalFormat( "000000000" ) |
DBObject | lookAheadObj = null |
ArchiveFilter | filter = null |
store a number of files in one stream.
Thought as a replacement for the (broken in GCC 3.2) java.util.zip where it is of no importance if the archive is compressed or readable by other applications.
sfi.director.util.ZipArchive.ZipArchive | ( | OutputStream | out | ) |
sfi.director.util.ZipArchive.ZipArchive | ( | InputStream | in | ) |
void sfi.director.util.ZipArchive.close | ( | ) | throws DirectorException |
Reimplemented from sfi.director.util.Archive.
Referenced by sfi.director.application.autodoc.FormatODF.generate().
File sfi.director.util.ZipArchive.extract | ( | File | directory, |
File | target | ||
) | throws DirectorException |
Reimplemented from sfi.director.util.Archive.
References sfi.director.util.ArchiveFilter.archiveClose(), sfi.director.util.ArchiveFilter.archiveStart(), sfi.director.util.Tools.copyData(), sfi.director.util.TempFile.create(), sfi.director.util.Setup.fileSeparator, sfi.director.util.Archive.filter(), sfi.director.repository.DBObject.getValue(), sfi.director.util.ZipArchive.lookAhead(), and sfi.director.util.Archive.lookAheadObj.
DBObject sfi.director.util.ZipArchive.lookAhead | ( | ) | throws DirectorException |
Reimplemented from sfi.director.util.Archive.
References sfi.director.util.Archive.lookAheadObj.
Referenced by sfi.director.util.ZipArchive.extract(), and sfi.director.util.ZipArchive.skip().
void sfi.director.util.ZipArchive.skip | ( | ) | throws DirectorException |
Reimplemented from sfi.director.util.Archive.
References sfi.director.util.ZipArchive.lookAhead(), and sfi.director.util.Archive.lookAheadObj.
void sfi.director.util.ZipArchive.store | ( | File | file, |
String | name | ||
) | throws DirectorException |
Reimplemented from sfi.director.util.Archive.
References sfi.director.util.Tools.copyData().