org.egothor.util.io
Class GZipInputStream

java.lang.Object
  extended by org.egothor.io.DataInputStream
      extended by org.egothor.util.io.GZipInputStream
All Implemented Interfaces:
DataInput

public class GZipInputStream
extends DataInputStream

GZipInputStream.java Created on 6. srpen 2006, 3:16

Author:
galambos

Constructor Summary
GZipInputStream(DataInput in)
          Creates a new instance of GZipInputStream
 
Method Summary
 int directRead(long from, byte[] arr)
          Read from the offset position without buffering.
 int read(byte[] arr, int offset, int max_len)
           
 byte readByte()
          Description of the Method
 int readFully(byte[] arr)
          Description of the Method
 
Methods inherited from class org.egothor.io.DataInputStream
close, getFilePointer, getMarkPointer, jump, length, mark, readBoolean, readInt, readLong, readPack7, readPack7I, readShort, readString, readString, seek, skipBytes, skipPack7, skipPack7I
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GZipInputStream

public GZipInputStream(DataInput in)
                throws java.io.IOException
Creates a new instance of GZipInputStream

Throws:
java.io.IOException
Method Detail

readFully

public int readFully(byte[] arr)
              throws java.io.IOException
Description copied from class: DataInputStream
Description of the Method

Specified by:
readFully in interface DataInput
Specified by:
readFully in class DataInputStream
Parameters:
arr - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.io.IOException - Description of the Exception

readByte

public byte readByte()
              throws java.io.IOException
Description copied from class: DataInputStream
Description of the Method

Specified by:
readByte in interface DataInput
Specified by:
readByte in class DataInputStream
Returns:
Description of the Return Value
Throws:
java.io.IOException - Description of the Exception

directRead

public int directRead(long from,
                      byte[] arr)
               throws java.io.IOException
Description copied from interface: DataInput
Read from the offset position without buffering. This operation moves the read head which may collide with buffered methods.

Specified by:
directRead in interface DataInput
Specified by:
directRead in class DataInputStream
Throws:
java.io.IOException

read

public int read(byte[] arr,
                int offset,
                int max_len)
         throws java.io.IOException
Specified by:
read in interface DataInput
Specified by:
read in class DataInputStream
Parameters:
arr - Description of the Parameter
max_len - Description of the Parameter
Returns:
number of bytes read
Throws:
java.io.IOException - Description of the Exception