java.lang.Object
ClassLib.Common.java.util.zip.PendingBuffer
- Direct Known Subclasses:
- DeflaterPending
- class PendingBuffer
- extends java.lang.Object
PendingBuffer
- Version:
- $Id: PendingBuffer.java,v 1.4 2003/05/12 10:04:53 joewhaley Exp $
Field Summary |
(package private) int |
bitCount
|
(package private) int |
bits
|
protected byte[] |
buf
|
(package private) int |
end
|
(package private) int |
start
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buf
protected byte[] buf
start
int start
end
int end
bits
int bits
bitCount
int bitCount
PendingBuffer
public PendingBuffer()
PendingBuffer
public PendingBuffer(int bufsize)
reset
public final void reset()
writeByte
public final void writeByte(int b)
writeShort
public final void writeShort(int s)
writeInt
public final void writeInt(int s)
writeBlock
public final void writeBlock(byte[] block,
int offset,
int len)
getBitCount
public final int getBitCount()
alignToByte
public final void alignToByte()
writeBits
public final void writeBits(int b,
int count)
writeShortMSB
public final void writeShortMSB(int s)
isFlushed
public final boolean isFlushed()
flush
public final int flush(byte[] output,
int offset,
int length)
- Flushes the pending buffer into the given output array. If the
output array is to small, only a partial flush is done.
toByteArray
public final byte[] toByteArray()
- Flushes the pending buffer and returns that data in a new array