public class RLEDecompressingInputStream
extends java.io.InputStream
| Constructor and Description |
|---|
RLEDecompressingInputStream(java.io.InputStream in)
Creates a new wrapper RLE Decompression InputStream.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
static byte[] |
decompress(byte[] compressed) |
static byte[] |
decompress(byte[] compressed,
int offset,
int length) |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int l) |
int |
readInt()
Convenience method for read a 4-bytes int in little endian encoding.
|
int |
readShort()
Convenience method for read a 2-bytes short in little endian encoding.
|
long |
skip(long n) |
public RLEDecompressingInputStream(java.io.InputStream in)
throws java.io.IOException
in - The stream to wrap with the RLE Decompressionjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int l)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOExceptionpublic int available()
available in class java.io.InputStreampublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionpublic int readShort()
throws java.io.IOException
java.io.IOExceptionpublic int readInt()
throws java.io.IOException
java.io.IOExceptionpublic static byte[] decompress(byte[] compressed)
throws java.io.IOException
java.io.IOExceptionpublic static byte[] decompress(byte[] compressed,
int offset,
int length)
throws java.io.IOException
java.io.IOExceptionCopyright 2018 The Apache Software Foundation or its licensors, as applicable.