public static class SparseImageUtil.SparseInputStream
extends Object
java.lang.Object |
↳ | com.android.tradefed.util.SparseImageUtil.SparseInputStream |
SparseInputStream liest vom Upstream und erkennt das Datenformat. Wenn es sich beim Upstream um gültige Sparse-Daten handelt, werden sie im laufenden Betrieb entsparst. Andernfalls wird es einfach so durchgereicht, wie es ist.
Zusammenfassung
Öffentliche Konstrukteure |
---|
SparseInputStream (BufferedInputStream in, long originalSize) |
Öffentliche Methoden |
---|
void | close () |
boolean | isSparse () |
int | read (byte[] buf, int off, int len) |
int | read () |
long | size () Gibt die Gesamtzahl der Bytes im unsparsed Bild zurück. |
Öffentliche Konstrukteure
public SparseInputStream (BufferedInputStream in,
long originalSize)
Parameter |
---|
in | BufferedInputStream |
originalSize | long |
Öffentliche Methoden
schließen
public void close ()
istSparse
public boolean isSparse ()
lesen
public int read (byte[] buf,
int off,
int len)
Parameter |
---|
buf | byte |
off | int |
len | int |
Größe
public long size ()
Gibt die Gesamtzahl der Bytes im unsparsed Bild zurück.
Kehrt zurück |
---|
long | mOriginalSize, wenn der zugrunde liegende Stream bereits Non-Sparse ist. |