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:
Closeable,AutoCloseable
public class RpcGZIPInputStream
extends com.jcraft.jzlib.InflaterInputStream
A 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).
-
Field Summary
Fields inherited from class com.jcraft.jzlib.InflaterInputStream
buf, DEFAULT_BUFSIZE, inflater, myinflaterFields inherited from class java.io.FilterInputStream
in -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.jcraft.jzlib.InflaterInputStream
available, fill, getAvailIn, getInflater, getTotalIn, getTotalOut, mark, markSupported, readHeader, reset, skipMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
RpcGZIPInputStream
- Throws:
IOException
-
-
Method Details
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classcom.jcraft.jzlib.InflaterInputStream- Throws:
IOException
-
read
- Overrides:
readin classcom.jcraft.jzlib.InflaterInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classcom.jcraft.jzlib.InflaterInputStream- Throws:
IOException
-