public class LZFInputStream extends InputStream
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
cfgFullReads
Flag that indicates whether we force full reads (reading of as many
bytes as requested), or 'optimal' reads (up to as many as available,
but at least one).
|
protected InputStream |
inputStream
stream to be decompressed
|
| Constructor and Description |
|---|
LZFInputStream(InputStream inputStream) |
LZFInputStream(InputStream in,
boolean fullReads) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
read() |
int |
read(byte[] buffer) |
int |
read(byte[] buffer,
int offset,
int length) |
available, mark, markSupported, reset, skipprotected final InputStream inputStream
protected boolean cfgFullReads
public LZFInputStream(InputStream inputStream) throws IOException
IOExceptionpublic LZFInputStream(InputStream in, boolean fullReads) throws IOException
inputStream - Underlying input stream to usefullReads - Whether read(byte[]) should try to read exactly
as many bytes as requested (true); or just however many happen to be
available (false)IOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] buffer)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] buffer,
int offset,
int length)
throws IOException
read in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionCopyright © 2020. All rights reserved.