Class XmlChunk
- java.lang.Object
-
- com.google.devrel.gmscore.tools.apk.arsc.Chunk
-
- com.google.devrel.gmscore.tools.apk.arsc.ChunkWithChunks
-
- com.google.devrel.gmscore.tools.apk.arsc.XmlChunk
-
- All Implemented Interfaces:
SerializableResource
public final class XmlChunk extends ChunkWithChunks
Represents an XML chunk structure.An XML chunk can contain many nodes as well as a string pool which contains all of the strings referenced by the nodes.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.devrel.gmscore.tools.apk.arsc.Chunk
Chunk.Type
-
-
Field Summary
-
Fields inherited from class com.google.devrel.gmscore.tools.apk.arsc.Chunk
chunkSize, headerSize, METADATA_SIZE, offset, PAD_BOUNDARY
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetString(int index)Returns a string at the provided (0-based) index if the index exists in the string pool.protected Chunk.TypegetType()-
Methods inherited from class com.google.devrel.gmscore.tools.apk.arsc.ChunkWithChunks
getChunks, init, writePayload
-
Methods inherited from class com.google.devrel.gmscore.tools.apk.arsc.Chunk
getHeaderSize, getOriginalChunkSize, getParent, newInstance, newInstance, toByteArray, toByteArray, writeHeader, writeHeader, writePad
-
-
-
-
Constructor Detail
-
XmlChunk
protected XmlChunk(java.nio.ByteBuffer buffer, @Nullable Chunk parent)
-
-
Method Detail
-
getType
protected Chunk.Type getType()
-
getString
public java.lang.String getString(int index)
Returns a string at the provided (0-based) index if the index exists in the string pool.
-
-