|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uk.org.ogsadai.activity.transform.ZIPIncrementalProcessor
An IncrementalProcessor to produce ZIP archives.
| Constructor Summary | |
ZIPIncrementalProcessor()
Constructs an instance with the default internal buffer size. |
|
ZIPIncrementalProcessor(int bufferSize)
Constructs an instance with the specified internal buffer size. |
|
| Method Summary | |
boolean |
active()
Indicates whether or not processing is complete. |
void |
close()
Closes the IncrementalProcessor, freeing up any resources. |
void |
initialise(java.io.OutputStream output)
Initialises the instance to process to the specified output. |
void |
process()
Performs some processing that may write data to the OutputStream> that the instance was initialised with. |
void |
setChecksum(java.util.zip.Checksum checksum)
Sets the checksum object to use with the archiving operation. |
void |
setComment(java.lang.String comment)
Sets the ZIP comment associated with the archive. |
void |
setEntryMap(java.util.Map entryMap)
Sets the ZIP entries. |
void |
setLevel(int level)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ZIPIncrementalProcessor()
public ZIPIncrementalProcessor(int bufferSize)
bufferSize - the size of the buffer| Method Detail |
public void setEntryMap(java.util.Map entryMap)
entryMap - a Map mapping entry name to entry input
streampublic void setChecksum(java.util.zip.Checksum checksum)
checksum - The Checksum to use for the archiving
operation. If this is null then no checksum is used.public void setComment(java.lang.String comment)
ZipOutputStream.setComment(java.lang.String)public void setLevel(int level)
ZipOutputStream.setLevel(int)public void initialise(java.io.OutputStream output)
IncrementalProcessor
initialise in interface IncrementalProcessoroutput - the OutputStreamIncrementalProcessor.initialise(OutputStream)public boolean active()
IncrementalProcessorprocess method.
active in interface IncrementalProcessorIncrementalProcessor.active()
public void process()
throws java.io.IOException
IncrementalProcessorOutputStream> that the instance was initialised with.
process in interface IncrementalProcessorjava.io.IOException - If there is an I/O problem.IncrementalProcessor.process()
public void close()
throws java.io.IOException
IncrementalProcessorIncrementalProcessor, freeing up any resources.
close in interface IncrementalProcessorjava.io.IOException - If there is an I/O problem.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||