com.caucho.quercus.lib.zlib
Class ZlibInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.caucho.quercus.lib.file.ReadStreamInput
          extended by com.caucho.quercus.lib.zlib.ZlibInputStream
All Implemented Interfaces:
BinaryInput, BinaryStream, java.io.Closeable

public class ZlibInputStream
extends ReadStreamInput

Input from a compressed stream.


Field Summary
 
Fields inherited from interface com.caucho.quercus.lib.file.BinaryStream
SEEK_CUR, SEEK_END, SEEK_SET
 
Constructor Summary
ZlibInputStream(Env env, BinaryInput in)
           
 
Method Summary
protected  void init(BinaryInput in)
           
 BinaryInput openCopy()
          Opens a new copy.
 boolean setPosition(long offset)
          Sets the position.
 java.lang.String toString()
          Converts to a string.
 
Methods inherited from class com.caucho.quercus.lib.file.ReadStreamInput
appendTo, close, closeRead, getInputStream, getPosition, getResourceType, init, isEOF, read, read, read, read, readLine, readOptionalLinefeed, seek, setEncoding, stat, toJavaObject, unread, writeToStream
 
Methods inherited from class java.io.InputStream
available, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ZlibInputStream

public ZlibInputStream(Env env,
                       BinaryInput in)
                throws java.io.IOException
Throws:
java.io.IOException
Method Detail

init

protected void init(BinaryInput in)
             throws java.io.IOException
Throws:
java.io.IOException

openCopy

public BinaryInput openCopy()
                     throws java.io.IOException
Opens a new copy.

Specified by:
openCopy in interface BinaryInput
Overrides:
openCopy in class ReadStreamInput
Throws:
java.io.IOException

setPosition

public boolean setPosition(long offset)
Sets the position.

Specified by:
setPosition in interface BinaryInput
Specified by:
setPosition in interface BinaryStream
Overrides:
setPosition in class ReadStreamInput

toString

public java.lang.String toString()
Description copied from class: ReadStreamInput
Converts to a string.

Overrides:
toString in class ReadStreamInput