Rzadki ObrazUtil
public class SparseImageUtil
extends Object
java.lang.Object | |
com.android.tradefed.util.SparseImageUtil |
Narzędzie do unsparse rozrzedzonych obrazów.
Ten fragment kodu pochodzi z: frameworks/base/packages/DynamicSystemInstallationService/src/com/android/dynsystem/SparseInputStream.java
Streszczenie
Klasy zagnieżdżone | |
---|---|
class | SparseImageUtil.SparseInputStream SparseInputStream odczytuje z nadrzędnego i wykrywa format danych. |
Konstruktorzy publiczni | |
---|---|
SparseImageUtil () |
Metody publiczne | |
---|---|
static boolean | isSparse (File imgFile) Sprawdza, czy plik jest rzadkim obrazem. |
static void | unsparse (File imgFile, File destFile) Rozpakowuje rzadki plik obrazu. |
Konstruktorzy publiczni
Rzadki ObrazUtil
public SparseImageUtil ()
Metody publiczne
jestSparse
public static boolean isSparse (File imgFile)
Sprawdza, czy plik jest rzadkim obrazem.
Parametry | |
---|---|
imgFile | File : ERROR(/File) , który ma zostać przetestowany. |
Zwroty | |
---|---|
boolean | prawda, jeśli imgFile jest rzadkim obrazem. |
nierozgarnięty
public static void unsparse (File imgFile, File destFile)
Rozpakowuje rzadki plik obrazu.
Parametry | |
---|---|
imgFile | File : ERROR(/File) , który jest rzadkim obrazem. |
destFile | File : ERROR(/File) , do którego ma zostać zapisany niesparsowany obraz. |
Rzuty | |
---|---|
| jeśli imgFile nie jest rzadkim obrazem. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2022-08-15 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Brak potrzebnych mi informacji"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Zbyt skomplikowane / zbyt wiele czynności do wykonania"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Nieaktualne treści"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Problem z tłumaczeniem"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Problem z przykładami/kodem"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Inne"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Łatwo zrozumieć"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Rozwiązało to mój problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Inne"
}]