Node Director
|
store a number of files in one stream. More...
Public Member Functions | |
Archive (InputStream input) | |
Archive (OutputStream output) | |
void | close () throws DirectorException |
void | store (File file, String name) throws DirectorException |
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 |
File | extract (File directory, File target) throws DirectorException |
void | skip () throws DirectorException |
DBObject | lookAhead () throws DirectorException |
String | nextFileName () throws DirectorException |
long | nextLastModified () throws DirectorException |
void | extractAll (File directory) throws DirectorException |
Protected Member Functions | |
void | finalize () |
void | getChunk (byte[] buffer, int size) throws DirectorException |
Protected Attributes | |
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.Archive.Archive | ( | InputStream | input | ) |
References sfi.director.util.Archive.input.
sfi.director.util.Archive.Archive | ( | OutputStream | output | ) |
References sfi.director.util.Archive.output.
void sfi.director.util.Archive.close | ( | ) | throws DirectorException |
Reimplemented in sfi.director.util.ZipArchive, and sfi.director.util.InterceptArchive.
References sfi.director.util.Archive.input, sfi.director.util.Archive.lengthField, and sfi.director.util.Archive.output.
Referenced by sfi.director.application.autodoc.InfoCollector.collectInto(), sfi.director.application.executor.ArchiveIt.exec(), sfi.director.application.executor.InstallFromArchive.exec(), sfi.director.util.Archive.finalize(), sfi.director.application.autodoc.InfoCollector.push(), and sfi.director.cli.archive.run().
File sfi.director.util.Archive.extract | ( | File | directory | ) | throws DirectorException |
Reimplemented in sfi.director.util.InterceptArchive.
Referenced by sfi.director.util.Archive.extractAll(), sfi.director.util.Archive.extractAs(), and sfi.director.application.autodoc.InfoCollector.push().
File sfi.director.util.Archive.extract | ( | File | directory, |
File | target | ||
) | throws DirectorException |
Reimplemented in sfi.director.util.ZipArchive, and sfi.director.util.InterceptArchive.
References sfi.director.util.ArchiveFilter.archiveClose(), sfi.director.util.ArchiveFilter.archiveStart(), sfi.director.util.ArchiveFilter.archiveWrite(), sfi.director.system.Files.chmod(), sfi.director.util.TempFile.create(), sfi.director.util.Setup.fileSeparator, sfi.director.util.Archive.filter(), sfi.director.util.Archive.getChunk(), sfi.director.repository.DBObject.getValue(), sfi.director.util.Archive.lookAhead(), sfi.director.util.Archive.lookAheadObj, sfi.director.system.FileStats.setPerms(), and sfi.director.system.Files.symlink().
void sfi.director.util.Archive.extractAll | ( | File | directory | ) | throws DirectorException |
References sfi.director.util.Archive.extract().
Referenced by sfi.director.cli.archive.extract(), and sfi.director.application.autodoc.FormatODF.generate().
File sfi.director.util.Archive.extractAs | ( | File | file | ) | throws DirectorException |
Reimplemented in sfi.director.util.InterceptArchive.
References sfi.director.util.Archive.extract().
Referenced by sfi.director.application.executor.InstallFromArchive.exec().
void sfi.director.util.Archive.filter | ( | ArchiveFilter | filter | ) |
References sfi.director.util.Archive.filter().
ArchiveFilter sfi.director.util.Archive.filter | ( | ) |
|
protected |
Reimplemented in sfi.director.util.InterceptArchive.
References sfi.director.util.Archive.close().
|
protected |
References sfi.director.util.Archive.input.
Referenced by sfi.director.util.Archive.extract(), and sfi.director.util.Archive.lookAhead().
DBObject sfi.director.util.Archive.lookAhead | ( | ) | throws DirectorException |
Reimplemented in sfi.director.util.ZipArchive.
References sfi.director.util.Archive.getChunk(), sfi.director.util.Archive.input, sfi.director.util.Archive.lengthField, and sfi.director.util.Archive.lookAheadObj.
Referenced by sfi.director.application.executor.InstallFromArchive.exec(), sfi.director.util.Archive.extract(), sfi.director.util.Archive.nextFileName(), sfi.director.util.Archive.nextLastModified(), and sfi.director.util.Archive.skip().
String sfi.director.util.Archive.nextFileName | ( | ) | throws DirectorException |
long sfi.director.util.Archive.nextLastModified | ( | ) | throws DirectorException |
void sfi.director.util.Archive.skip | ( | ) | throws DirectorException |
Reimplemented in sfi.director.util.ZipArchive.
References sfi.director.repository.DBObject.getValue(), sfi.director.util.Archive.input, sfi.director.util.Archive.lookAhead(), and sfi.director.util.Archive.lookAheadObj.
Referenced by sfi.director.application.executor.InstallFromArchive.exec(), and sfi.director.cli.archive.list().
void sfi.director.util.Archive.store | ( | File | file, |
String | name | ||
) | throws DirectorException |
Reimplemented in sfi.director.util.ZipArchive, and sfi.director.util.InterceptArchive.
References sfi.director.util.Tools.copyData(), sfi.director.system.FileStats.getPerms(), sfi.director.util.Archive.lengthField, sfi.director.util.Archive.output, sfi.director.system.Files.readlink(), sfi.director.repository.DBObject.setDN(), sfi.director.system.Files.stat(), and sfi.director.repository.DBObject.toLDIF().
Referenced by sfi.director.application.autodoc.InfoCollector.collectInto(), and sfi.director.util.Archive.storeAll().
void sfi.director.util.Archive.storeAll | ( | File | directory | ) | throws DirectorException |
void sfi.director.util.Archive.storeAll | ( | File | directory, |
String | name | ||
) | throws DirectorException |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |