com.koushikdutta.async
Class ZipDataSink

java.lang.Object
  extended by com.koushikdutta.async.BufferedDataSink
      extended by com.koushikdutta.async.FilteredDataSink
          extended by com.koushikdutta.async.ZipDataSink
All Implemented Interfaces:
DataSink

public class ZipDataSink
extends FilteredDataSink


Constructor Summary
ZipDataSink(DataSink sink)
           
 
Method Summary
 void close()
           
 void closeEntry()
           
 ByteBufferList filter(ByteBufferList bb)
           
 void putNextEntry(java.util.zip.ZipEntry ze)
           
protected  void report(java.lang.Exception e)
           
 
Methods inherited from class com.koushikdutta.async.FilteredDataSink
write, write
 
Methods inherited from class com.koushikdutta.async.BufferedDataSink
end, getClosedCallback, getDataSink, getMaxBuffer, getServer, getWriteableCallback, isBuffering, isOpen, remaining, setClosedCallback, setMaxBuffer, setWriteableCallback, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipDataSink

public ZipDataSink(DataSink sink)
Method Detail

putNextEntry

public void putNextEntry(java.util.zip.ZipEntry ze)
                  throws java.io.IOException
Throws:
java.io.IOException

closeEntry

public void closeEntry()
                throws java.io.IOException
Throws:
java.io.IOException

report

protected void report(java.lang.Exception e)

close

public void close()
Specified by:
close in interface DataSink
Overrides:
close in class BufferedDataSink

filter

public ByteBufferList filter(ByteBufferList bb)
Overrides:
filter in class FilteredDataSink