SparseImageUtil.SparseInputStream
public
static
class
SparseImageUtil.SparseInputStream
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.SparseImageUtil.SparseInputStream |
SparseInputStream 从上游读取并检测数据格式。如果上游是有效的稀疏数据,则会动态取消稀疏处理。否则,它会按原样传递。
摘要
公共构造函数 | |
---|---|
SparseInputStream(BufferedInputStream in, long originalSize)
|
公共方法 | |
---|---|
void
|
close()
|
boolean
|
isSparse()
|
int
|
read()
|
int
|
read(byte[] buf, int off, int len)
|
long
|
size()
返回未解析图片的字节总数。 |
公共构造函数
SparseInputStream
public SparseInputStream (BufferedInputStream in, long originalSize)
参数 | |
---|---|
in |
BufferedInputStream |
originalSize |
long |
公共方法
关闭
public void close ()
isSparse
public boolean isSparse ()
返回 | |
---|---|
boolean |
阅读
public int read ()
返回 | |
---|---|
int |
阅读
public int read (byte[] buf, int off, int len)
参数 | |
---|---|
buf |
byte |
off |
int |
len |
int |
返回 | |
---|---|
int |
size
public long size ()
返回未解析图片的字节总数。
返回 | |
---|---|
long |
如果底层数据流已非稀疏,则为 mOriginalSize。 |