本文整理汇总了Java中brut.androlib.err.CantFind9PatchChunk类的典型用法代码示例。如果您正苦于以下问题:Java CantFind9PatchChunk类的具体用法?Java CantFind9PatchChunk怎么用?Java CantFind9PatchChunk使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
CantFind9PatchChunk类属于brut.androlib.err包,在下文中一共展示了CantFind9PatchChunk类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: find9patchChunk
import brut.androlib.err.CantFind9PatchChunk; //导入依赖的package包/类
private void find9patchChunk(DataInput di) throws AndrolibException,
IOException {
di.skipBytes(8);
while (true) {
int size;
try {
size = di.readInt();
} catch (IOException ex) {
throw new CantFind9PatchChunk("Cant find nine patch chunk", ex);
}
if (di.readInt() == NP_CHUNK_TYPE) {
return;
}
di.skipBytes(size + 4);
}
}
示例2: find9patchChunk
import brut.androlib.err.CantFind9PatchChunk; //导入依赖的package包/类
private void find9patchChunk(DataInput di) throws AndrolibException,
IOException {
di.skipBytes(8);
while (true) {
int size;
try {
size = di.readInt();
} catch (IOException ex) {
throw new CantFind9PatchChunk("Cant find nine patch chunk", ex);
}
if (di.readInt() == NP_CHUNK_TYPE) {
return;
}
di.skipBytes(size + 4);
}
}
示例3: find9patchChunk
import brut.androlib.err.CantFind9PatchChunk; //导入依赖的package包/类
private static void find9patchChunk(DataInput di) throws AndrolibException,
IOException {
di.skipBytes(8);
while (true) {
int size;
try {
size = di.readInt();
} catch (IOException ex) {
throw new CantFind9PatchChunk("Cant find nine patch chunk", ex);
}
if (di.readInt() == NP_CHUNK_TYPE) {
return;
}
di.skipBytes(size + 4);
}
}