|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.InputStream org.at4j.comp.bzip2.BZip2InputStream
public class BZip2InputStream
This is an InputStream
for reading bzip2 encoded data.
For more information on the inner workings of bzip2, see the Wikipedia article on bzip2.
This stream is not safe for concurrent access by several writing threads. A client must provide external synchronization to use this from several threads.
BZip2InputStreamSettings
,
BZip2OutputStream
Constructor Summary | |
---|---|
BZip2InputStream(InputStream in)
Create a new bzip2 input stream that will read compressed data from in . |
|
BZip2InputStream(InputStream in,
BZip2InputStreamSettings settings)
Create a new bzip2 input stream that will read compressed data from in . |
Method Summary | |
---|---|
void |
close()
|
protected void |
finalize()
Close the stream if the client has been sloppy about it. |
int |
read()
|
int |
read(byte[] barr)
|
int |
read(byte[] barr,
int off,
int len)
|
Methods inherited from class java.io.InputStream |
---|
available, mark, markSupported, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BZip2InputStream(InputStream in) throws IOException
in
.
in
- The stream to read compressed data from.
IOException
- On errors when reading the file header.BZip2InputStream(InputStream, BZip2InputStreamSettings)
public BZip2InputStream(InputStream in, BZip2InputStreamSettings settings) throws IOException
in
.
in
- The stream to read compressed data from.settings
- Settings for the decoder.
IOException
- On errors when reading the file header.BZip2InputStream(InputStream)
Method Detail |
---|
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] barr) throws IOException
read
in class InputStream
IOException
public int read(byte[] barr, int off, int len) throws IOException, IndexOutOfBoundsException
read
in class InputStream
IOException
IndexOutOfBoundsException
public void close() throws IOException
close
in interface Closeable
close
in class InputStream
IOException
protected void finalize() throws Throwable
finalize
in class Object
Throwable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |