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.
(以小端编码读取 4 字节 int 的便捷方法。)
|
int |
readShort()
Convenience method for read a 2-bytes short in little endian encoding.
(在小端编码中读取 2 字节短的便捷方法。)
|
long |
skip(long n) |
public RLEDecompressingInputStream(java.io.InputStream in) throws java.io.IOException
in
- The stream to wrap with the RLE Decompression
(in - 使用 RLE 解压缩包装的流)
java.io.IOException
(java.io.IOException)
public int read() throws java.io.IOException
read
in class
java.io.InputStream
(读入类 java.io.InputStream)
java.io.IOException
(java.io.IOException)
public int read(byte[] b) throws java.io.IOException
read
in class
java.io.InputStream
java.io.IOException
(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
(java.io.IOException)
public long skip(long n) throws java.io.IOException
skip
in class
java.io.InputStream
java.io.IOException
(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
(在接口 java.io.Closeable 中关闭)
close
in interface
java.lang.AutoCloseable
(在接口 java.lang.AutoCloseable 中关闭)
close
in class
java.io.InputStream
java.io.IOException
(java.io.IOException)
public int readShort() throws java.io.IOException
java.io.IOException
(java.io.IOException)
public int readInt() throws java.io.IOException
java.io.IOException
(java.io.IOException)
public static byte[] decompress(byte[] compressed) throws java.io.IOException
java.io.IOException
(java.io.IOException)
public static byte[] decompress(byte[] compressed, int offset, int length) throws java.io.IOException
java.io.IOException
(java.io.IOException)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.