Class RpcGZIPInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- com.jcraft.jzlib.InflaterInputStream
-
- com.perforce.p4java.impl.mapbased.rpc.stream.RpcGZIPInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class RpcGZIPInputStream extends com.jcraft.jzlib.InflaterInputStreamA lightweight wrapper around the JZlib ZIP input stream for processing compressed streams being sent from Perforce servers when the client "client compress" mode is enabled.Note that the Perforce version of the GZIP stream dispenses with headers and trailers, but is otherwise fairly standard (which is why this works).
-
-
Constructor Summary
Constructors Constructor Description RpcGZIPInputStream(java.io.InputStream in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()intread()intread(byte[] bytes)intread(byte[] bytes, int offset, int len)-
Methods inherited from class com.jcraft.jzlib.InflaterInputStream
available, fill, getAvailIn, getInflater, getTotalIn, getTotalOut, mark, markSupported, readHeader, reset, skip
-
-
-
-
Method Detail
-
read
public int read(byte[] bytes) throws java.io.IOException- Overrides:
readin classjava.io.FilterInputStream- Throws:
java.io.IOException
-
read
public int read(byte[] bytes, int offset, int len) throws java.io.IOException- Overrides:
readin classcom.jcraft.jzlib.InflaterInputStream- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOException- Overrides:
readin classcom.jcraft.jzlib.InflaterInputStream- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classcom.jcraft.jzlib.InflaterInputStream- Throws:
java.io.IOException
-
-