Node Director
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
sfi.director.util.Archive Class Reference

store a number of files in one stream. More...

Inheritance diagram for sfi.director.util.Archive:
sfi.director.util.InterceptArchive sfi.director.util.ZipArchive

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

Detailed Description

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.

Constructor & Destructor Documentation

sfi.director.util.Archive.Archive ( InputStream  input)
sfi.director.util.Archive.Archive ( OutputStream  output)

Member Function Documentation

void sfi.director.util.Archive.close ( ) throws DirectorException
File sfi.director.util.Archive.extract ( File  directory) throws DirectorException
File sfi.director.util.Archive.extract ( File  directory,
File  target 
) throws DirectorException
void sfi.director.util.Archive.extractAll ( File  directory) throws DirectorException
File sfi.director.util.Archive.extractAs ( File  file) throws DirectorException
void sfi.director.util.Archive.filter ( ArchiveFilter  filter)
ArchiveFilter sfi.director.util.Archive.filter ( )
void sfi.director.util.Archive.finalize ( )
protected
void sfi.director.util.Archive.getChunk ( byte[]  buffer,
int  size 
) throws DirectorException
protected
DBObject sfi.director.util.Archive.lookAhead ( ) throws DirectorException
String sfi.director.util.Archive.nextFileName ( ) throws DirectorException
long sfi.director.util.Archive.nextLastModified ( ) throws DirectorException
void sfi.director.util.Archive.skip ( ) throws DirectorException
void sfi.director.util.Archive.store ( File  file,
String  name 
) throws DirectorException
void sfi.director.util.Archive.storeAll ( File  directory) throws DirectorException
void sfi.director.util.Archive.storeAll ( File  directory,
String  name 
) throws DirectorException

Member Data Documentation

ArchiveFilter sfi.director.util.Archive.filter = null
protected
InputStream sfi.director.util.Archive.input
protected
DecimalFormat sfi.director.util.Archive.lengthField = new DecimalFormat( "000000000" )
protected
DBObject sfi.director.util.Archive.lookAheadObj = null
protected
OutputStream sfi.director.util.Archive.output
protected

The documentation for this class was generated from the following file: