org.caleigo.toolkit.tunnel
Class ZipPacker.ZipPackerOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.caleigo.toolkit.tunnel.ZipPacker.ZipPackerOutputStream
- Enclosing class:
- ZipPacker
- protected class ZipPacker.ZipPackerOutputStream
- extends java.io.FilterOutputStream
Fields inherited from class java.io.FilterOutputStream |
out |
Methods inherited from class java.io.FilterOutputStream |
close, write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mByteBuffer
protected byte[] mByteBuffer
mBufferSize
protected int mBufferSize
mCurrentPosition
protected int mCurrentPosition
mZipOutputStream
protected java.util.zip.ZipOutputStream mZipOutputStream
mZipEntryID
protected int mZipEntryID
ZipPacker.ZipPackerOutputStream
public ZipPacker.ZipPackerOutputStream(java.io.OutputStream out,
int bufferSize)
- Creates a ZipPackerOutputStream that wrapps an OutputStream.
- Parameters:
out
- the OutputStream that should be used to write the zipped
data to.bufferSize
- the initial size of the internal buffer. The size
of the buffer is increased as needed. Each time
the buffer needs to be resized its size is increased
by bufferSize / 2 bytes.
write
public void write(int b)
throws java.io.IOException
- Throws:
java.io.IOException
flush
public void flush()
throws java.io.IOException
- Throws:
java.io.IOException
getNextZipEntryID
protected int getNextZipEntryID()
Copyright © 2005 Caleigo. All Rights Reserved.