Skip navigation links
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
- Enclosing class:
- CompressionFilter
-
public static class CompressionFilter.InflaterInputShell
- extends InflaterInputStream
InflaterInputShell enforces the "end" call for the corresponding Inflater object.
CompressionFilter.InflaterInputShell
public CompressionFilter.InflaterInputShell(InputStream stream,
Inflater inflater)
- Create a new input stream with the specified decompressor.
- Parameters:
stream
- the input stream
inflater
- the decompressor ("inflater")
CompressionFilter.InflaterInputShell
public CompressionFilter.InflaterInputShell(InputStream stream,
Inflater inflater,
int cbSize)
- Create a new input stream with the specified decompressor and buffer size.
- Parameters:
stream
- the input stream
inflater
- the decompressor ("inflater")
cbSize
- the input buffer size
close
public void close()
throws IOException
- Close the input stream.
-
- Specified by:
close
in interface Closeable
- Overrides:
close
in class InflaterInputStream
-
- Throws:
IOException
- if an I/O error has occurred
read
public int read()
throws IOException
- Overrides the underlying
InflaterInputStream.read()
implementation making the known bug fix in JDK 1.4.1 ( "InflaterInputStream is very memory inefficient") retroactive for prior JDKs.
-
- Overrides:
read
in class InflaterInputStream
-
- Returns:
- the byte read, or -1 if end of compressed input is reached
- Throws:
IOException
- if an I/O error has occurred
Skip navigation links
Copyright © 2000, 2010, Oracle and/or its affiliates. All rights reserved.