|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
fr.up7.info.RLEInputStream
public class RLEInputStream
A RLEInputStream implements a stream filter to read
compressed data using a RLE format.
The format is such that any too long running subsequence of the same single
letter in the original data is encoded as the length of the run and the
letter. As aaaabbdeaaa could simply be encoded as
*4abbde*3a.
FilterInputStream| Field Summary |
|---|
| Fields inherited from class java.io.FilterInputStream |
|---|
in |
| Constructor Summary | |
|---|---|
RLEInputStream(InputStream is)
Constructs a decompressing input stream from a given input stream. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the stream. |
void |
mark(int limit)
Actually not supported. |
boolean |
markSupported()
Actually not supported. |
long |
offset()
Gives the number of uncompressed bytes already read. |
int |
read()
Reads a byte of uncompressed data. |
void |
reset()
Actually not supported. |
| Methods inherited from class java.io.FilterInputStream |
|---|
available, read, read, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RLEInputStream(InputStream is)
throws fr.up7.info.RLEHeaderException
is - the underlying compressed data input stream.
RLEMissingHeaderException - if no header is found in the file
RLEUnknownHeaderException - if an unknown header is found.
fr.up7.info.RLEHeaderException| Method Detail |
|---|
public boolean markSupported()
markSupported in class FilterInputStreamfalsemark(int),
reset()public void mark(int limit)
mark in class FilterInputStreammarkSupported()
public void reset()
throws IOException
reset in class FilterInputStreamIOException - each time that function is called.markSupported()
public int read()
throws IOException
read in class FilterInputStreamIOException - if an I/O error has occured.FilterInputStream.in
public void close()
throws IOException
close in interface Closeableclose in class FilterInputStreamIOException - if an I/O error has occured.FilterInputStream.inpublic long offset()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||