public class ParseUtils extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static Charset |
charsetUTF8 |
| 构造器和说明 |
|---|
ParseUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
checkChunkType(int expected,
int real) |
static ResourceValue |
readResValue(ByteBuffer buffer,
StringPool stringPool)
read res value, convert from different types to string.
|
static String |
readString(ByteBuffer buffer,
boolean utf8)
read string from input buffer. if get EOF before read enough data, throw IOException.
|
static StringPool |
readStringPool(ByteBuffer buffer,
StringPoolHeader stringPoolHeader)
read String pool, for apk binary xml file and resource table.
|
static String |
readStringUTF16(ByteBuffer buffer,
int strLen)
read utf-16 encoding str, use zero char to end str.
|
public static Charset charsetUTF8
public static String readString(ByteBuffer buffer, boolean utf8)
public static String readStringUTF16(ByteBuffer buffer, int strLen)
public static StringPool readStringPool(ByteBuffer buffer, StringPoolHeader stringPoolHeader)
@Nullable public static ResourceValue readResValue(ByteBuffer buffer, StringPool stringPool)
public static void checkChunkType(int expected,
int real)
Copyright © 2019. All rights reserved.