sfi.director.util.Archive Class Reference

Inheritance diagram for sfi.director.util.Archive:

sfi.director.util.InterceptArchive sfi.director.util.ZipArchive List of all members.

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.


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


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
 

Reimplemented in sfi.director.util.InterceptArchive, and sfi.director.util.ZipArchive.

File sfi.director.util.Archive.extract File  directory,
File  target
throws DirectorException
 

Reimplemented in sfi.director.util.InterceptArchive, and sfi.director.util.ZipArchive.

File sfi.director.util.Archive.extract File  directory  )  throws DirectorException
 

Reimplemented in sfi.director.util.InterceptArchive.

void sfi.director.util.Archive.extractAll File  directory  )  throws DirectorException
 

File sfi.director.util.Archive.extractAs File  file  )  throws DirectorException
 

Reimplemented in sfi.director.util.InterceptArchive.

ArchiveFilter sfi.director.util.Archive.filter  ) 
 

void sfi.director.util.Archive.filter ArchiveFilter  filter  ) 
 

void sfi.director.util.Archive.finalize  )  [protected]
 

Reimplemented in sfi.director.util.InterceptArchive.

void sfi.director.util.Archive.getChunk byte[]  buffer,
int  size
throws DirectorException [protected]
 

DBObject sfi.director.util.Archive.lookAhead  )  throws DirectorException
 

Reimplemented in sfi.director.util.ZipArchive.

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.

void sfi.director.util.Archive.store File  file,
String  name
throws DirectorException
 

Reimplemented in sfi.director.util.InterceptArchive, and sfi.director.util.ZipArchive.

void sfi.director.util.Archive.storeAll File  directory,
String  name
throws DirectorException
 

void sfi.director.util.Archive.storeAll File  directory  )  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:
Generated on Sat Feb 11 01:20:42 2012 for Node Director by  doxygen 1.4.5