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.IOException
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] b) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] b, int off, int l) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
in class java.io.InputStream
java.io.IOException
public int available()
available
in class java.io.InputStream
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
java.io.IOException
public int readShort() throws java.io.IOException
java.io.IOException
public int readInt() throws java.io.IOException
java.io.IOException
public static byte[] decompress(byte[] compressed) throws java.io.IOException
java.io.IOException
public static byte[] decompress(byte[] compressed, int offset, int length) throws java.io.IOException
java.io.IOException
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.