swishej
Class GZBuf

java.lang.Object
  |
  +--swishej.GZBuf

class GZBuf
extends java.lang.Object


Field Summary
(package private)  byte[] buffer
          Expanded data or null.
(package private)  byte[] gzbuf
          Collapsed data or null.
(package private)  int size
          Expanded size of data.
 
Constructor Summary
(package private) GZBuf(int size)
          Make buffer given expanded size.
 
Method Summary
(package private)  void collapse()
          Collapse buffer if not already collapsed.
(package private)  void expand()
          Expand buffer if not already expanded.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

size

int size
Expanded size of data.

buffer

byte[] buffer
Expanded data or null.

gzbuf

byte[] gzbuf
Collapsed data or null.
Constructor Detail

GZBuf

GZBuf(int size)
Make buffer given expanded size.
Parameters:
size - expanded size
Method Detail

collapse

void collapse()
        throws java.io.IOException
Collapse buffer if not already collapsed.
Throws:
java.io.IOException - if an error occurred

expand

void expand()
      throws java.io.IOException
Expand buffer if not already expanded.
Throws:
java.io.IOException - if an error occurred


Contact: Christian.Werner@t-online.de