Save This Page
Home » openjdk-7 » java » util » zip » [javadoc | source]
java.util.zip
class: PendingBuffer [javadoc | source]
java.lang.Object
   java.util.zip.PendingBuffer

Direct Known Subclasses:
    DeflaterPending

This class is general purpose class for writing data to a buffer. It allows you to write bits as well as bytes Based on DeflaterPending.java
Field Summary
protected  byte[] buf     
 int start     
 int end     
 int bits     
 int bitCount     
Constructor:
 public PendingBuffer() 
 public PendingBuffer(int bufsize) 
Method from java.util.zip.PendingBuffer Summary:
alignToByte,   flush,   getBitCount,   isFlushed,   reset,   toByteArray,   writeBits,   writeBlock,   writeByte,   writeInt,   writeShort,   writeShortMSB
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.util.zip.PendingBuffer Detail:
 public final  void alignToByte() 
 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.
 public final int getBitCount() 
 public final boolean isFlushed() 
 public final  void reset() 
 public final byte[] toByteArray() 
    Flushes the pending buffer and returns that data in a new array
 public final  void writeBits(int b,
    int count) 
 public final  void writeBlock(byte[] block,
    int offset,
    int len) 
 public final  void writeByte(int b) 
 public final  void writeInt(int s) 
 public final  void writeShort(int s) 
 public final  void writeShortMSB(int s)