public static class SparseImageUtil.SparseInputStream
extends Object
java.lang.Object |
↳ | com.android.tradefed.util.SparseImageUtil.SparseInputStream |
SparseInputStream lit en amont et détecte le format des données. Si l'amont est une donnée éparse valide, il la déparsera à la volée. Sinon, il passe simplement tel quel.
Résumé
Méthodes publiques |
---|
void | close () |
boolean | isSparse () |
int | read (byte[] buf, int off, int len) |
int | read () |
long | size () Renvoie le nombre total d'octets dans l'image non fragmentée. |
Constructeurs publics
public SparseInputStream (BufferedInputStream in,
long originalSize)
Paramètres |
---|
in | BufferedInputStream |
originalSize | long |
Méthodes publiques
fermer
public void close ()
isSparse
public boolean isSparse ()
lire
public int read (byte[] buf,
int off,
int len)
Paramètres |
---|
buf | byte |
off | int |
len | int |
taille
public long size ()
Renvoie le nombre total d'octets dans l'image non fragmentée.
Retour |
---|
long | mOriginalSize si le flux sous-jacent est déjà non clairsemé. |