|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
com.lizardtech.djvu.BSInputStream
public final class BSInputStream
This class decodes a bzz encoded InputStream.
Constructor Summary | |
---|---|
BSInputStream()
Creates a new BSInputStream object. |
|
BSInputStream(java.io.InputStream input)
Creates a new BSInputStream object. |
Method Summary | |
---|---|
static BSInputStream |
createBSInputStream(DjVuInterface ref)
Creates an instance of BSInputStream with the options interherited from the specified reference. |
void |
flush()
Clears any decoded data. |
DjVuOptions |
getDjVuOptions()
Query the DjVuOptions used by this object. |
BSInputStream |
init(java.io.InputStream input)
Called to initialize the stream and set the data to be decoded. |
int |
read()
Called to read the next byte of data. |
int |
read(byte[] buffer,
int offset,
int sz)
Called to read data into a buffer. |
void |
setDjVuOptions(DjVuOptions options)
Set the DjVuOptions used by this object. |
Methods inherited from class java.io.InputStream |
---|
available, close, mark, markSupported, read, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BSInputStream()
public BSInputStream(java.io.InputStream input) throws java.io.IOException
input
- steam to decode
java.io.IOException
- if an error occuresMethod Detail |
---|
public void setDjVuOptions(DjVuOptions options)
setDjVuOptions
in interface DjVuInterface
options
- The DjVuOptions used by this object.public DjVuOptions getDjVuOptions()
getDjVuOptions
in interface DjVuInterface
public static BSInputStream createBSInputStream(DjVuInterface ref)
ref
- Object to interherit DjVuOptions from.
public void flush()
public BSInputStream init(java.io.InputStream input) throws java.io.IOException
input
- stream to be decoded
java.io.IOException
- if an error occurspublic int read(byte[] buffer, int offset, int sz) throws java.io.IOException
read
in class java.io.InputStream
buffer
- byte array to fill with dataoffset
- to start adding datasz
- maximum amount of data to read
java.io.IOException
- if an error occurspublic int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
- if an error occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |