Enum Chunk.Type
- java.lang.Object
-
- java.lang.Enum<Chunk.Type>
-
- com.google.devrel.gmscore.tools.apk.arsc.Chunk.Type
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Chunk.Type>
- Enclosing class:
- Chunk
public static enum Chunk.Type extends java.lang.Enum<Chunk.Type>
Types of chunks that can exist.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NULLSTRING_POOLTABLETABLE_LIBRARYTABLE_PACKAGETABLE_TYPETABLE_TYPE_SPECXMLXML_CDATAXML_END_ELEMENTXML_END_NAMESPACEXML_RESOURCE_MAPXML_START_ELEMENTXML_START_NAMESPACE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description shortcode()static Chunk.TypefromCode(short code)static Chunk.TypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Chunk.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NULL
public static final Chunk.Type NULL
-
STRING_POOL
public static final Chunk.Type STRING_POOL
-
TABLE
public static final Chunk.Type TABLE
-
XML
public static final Chunk.Type XML
-
XML_START_NAMESPACE
public static final Chunk.Type XML_START_NAMESPACE
-
XML_END_NAMESPACE
public static final Chunk.Type XML_END_NAMESPACE
-
XML_START_ELEMENT
public static final Chunk.Type XML_START_ELEMENT
-
XML_END_ELEMENT
public static final Chunk.Type XML_END_ELEMENT
-
XML_CDATA
public static final Chunk.Type XML_CDATA
-
XML_RESOURCE_MAP
public static final Chunk.Type XML_RESOURCE_MAP
-
TABLE_PACKAGE
public static final Chunk.Type TABLE_PACKAGE
-
TABLE_TYPE
public static final Chunk.Type TABLE_TYPE
-
TABLE_TYPE_SPEC
public static final Chunk.Type TABLE_TYPE_SPEC
-
TABLE_LIBRARY
public static final Chunk.Type TABLE_LIBRARY
-
-
Method Detail
-
values
public static Chunk.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Chunk.Type c : Chunk.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Chunk.Type valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
code
public short code()
-
fromCode
public static Chunk.Type fromCode(short code)
-
-