public class CBZip2InputStream extends InputStream
Constructor and Description |
---|
CBZip2InputStream(InputStream in)
Constructs a new CBZip2InputStream which decompresses bytes read from
the specified stream.
|
public CBZip2InputStream(InputStream in) throws IOException
Although BZip2 headers are marked with the magic "Bz" this constructor expects the next byte in the stream to be the first one after the magic. Thus callers have to skip the first two bytes. Otherwise this constructor will throw an exception.
IOException
- if the stream content is malformed or an I/O error occurs.NullPointerException
- if in == nullpublic int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] dest, int offs, int len) throws IOException
read
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
Copyright © 2014 Open Microscopy Environment