net.csdn.modules.compress.lzf
Class LZFInputStream
java.lang.Object
java.io.InputStream
net.csdn.modules.compress.lzf.LZFInputStream
- All Implemented Interfaces:
- Closeable
public class LZFInputStream
- extends InputStream
|
Field Summary |
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 |
|
Method Summary |
void |
close()
|
int |
read()
|
int |
read(byte[] buffer)
|
int |
read(byte[] buffer,
int offset,
int length)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
inputStream
protected final InputStream inputStream
- stream to be decompressed
cfgFullReads
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). Default is false, meaning that 'optimal' read
is used.
LZFInputStream
public LZFInputStream(InputStream inputStream)
throws IOException
- Throws:
IOException
LZFInputStream
public LZFInputStream(InputStream in,
boolean fullReads)
throws IOException
- Parameters:
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)
- Throws:
IOException
read
public int read()
throws IOException
- Specified by:
read in class InputStream
- Throws:
IOException
read
public int read(byte[] buffer)
throws IOException
- Overrides:
read in class InputStream
- Throws:
IOException
read
public int read(byte[] buffer,
int offset,
int length)
throws IOException
- Overrides:
read in class InputStream
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Overrides:
close in class InputStream
- Throws:
IOException
Copyright © 2014. All Rights Reserved.