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。