Package com.tangosol.net
Class CompressionFilter.InflaterInputShell
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- java.util.zip.InflaterInputStream
-
- com.tangosol.net.CompressionFilter.InflaterInputShell
-
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
- CompressionFilter
public static class CompressionFilter.InflaterInputShell extends InflaterInputStream
InflaterInputShell enforces the "end" call for the corresponding Inflater object.
-
-
Field Summary
-
Fields inherited from class java.util.zip.InflaterInputStream
buf, inf, len
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Constructor Description InflaterInputShell(InputStream stream, Inflater inflater)Create a new input stream with the specified decompressor.InflaterInputShell(InputStream stream, Inflater inflater, int cbSize)Create a new input stream with the specified decompressor and buffer size.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close the input stream.intread()Overrides the underlyingInflaterInputStream.read()implementation making the known bug fix in JDK 1.4.1 ( "InflaterInputStream is very memory inefficient") retroactive for prior JDKs.-
Methods inherited from class java.util.zip.InflaterInputStream
available, fill, mark, markSupported, read, reset, skip
-
Methods inherited from class java.io.FilterInputStream
read
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Constructor Detail
-
InflaterInputShell
public InflaterInputShell(InputStream stream, Inflater inflater)
Create a new input stream with the specified decompressor.- Parameters:
stream- the input streaminflater- the decompressor ("inflater")
-
InflaterInputShell
public InflaterInputShell(InputStream stream, Inflater inflater, int cbSize)
Create a new input stream with the specified decompressor and buffer size.- Parameters:
stream- the input streaminflater- the decompressor ("inflater")cbSize- the input buffer size
-
-
Method Detail
-
close
public void close() throws IOExceptionClose the input stream.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInflaterInputStream- Throws:
IOException
-
read
public int read() throws IOExceptionOverrides the underlyingInflaterInputStream.read()implementation making the known bug fix in JDK 1.4.1 ( "InflaterInputStream is very memory inefficient") retroactive for prior JDKs.- Overrides:
readin classInflaterInputStream- Throws:
IOException
-
-