public class RLEDecompressingInputStream extends InputStream
Constructor and Description |
---|
RLEDecompressingInputStream(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) |
mark, markSupported, reset
public RLEDecompressingInputStream(InputStream in) throws IOException
in
- The stream to wrap with the RLE DecompressionIOException
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b) throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int l) throws IOException
read
in class InputStream
IOException
public long skip(long n) throws IOException
skip
in class InputStream
IOException
public int available()
available
in class InputStream
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public int readShort() throws IOException
IOException
public int readInt() throws IOException
IOException
public static byte[] decompress(byte[] compressed) throws IOException
IOException
public static byte[] decompress(byte[] compressed, int offset, int length) throws IOException
IOException
Copyright © 2010 - 2020 Adobe. All Rights Reserved