public enum ChunkType extends Enum<ChunkType>
ChunkHeader
. They are always 4 ASCII chars long.Chunk
Enum Constant and Description |
---|
ANNOTATION |
APPLICATION |
AUTHOR |
COMMENTS |
COMMON |
COPYRIGHT |
CORRUPT_TAG_EARLY |
CORRUPT_TAG_LATE |
FORMAT_VERSION |
NAME |
SOUND |
TAG |
Modifier and Type | Method and Description |
---|---|
static ChunkType |
get(String code)
Get
ChunkType for code (e.g. |
String |
getCode()
4 char type code.
|
static ChunkType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ChunkType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChunkType FORMAT_VERSION
public static final ChunkType APPLICATION
public static final ChunkType SOUND
public static final ChunkType COMMON
public static final ChunkType COMMENTS
public static final ChunkType NAME
public static final ChunkType AUTHOR
public static final ChunkType COPYRIGHT
public static final ChunkType ANNOTATION
public static final ChunkType TAG
public static final ChunkType CORRUPT_TAG_LATE
public static final ChunkType CORRUPT_TAG_EARLY
public static ChunkType[] values()
for (ChunkType c : ChunkType.values()) System.out.println(c);
public static ChunkType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static ChunkType get(String code)
ChunkType
for code (e.g. "SSND").code
- chunk idnull
if not registeredpublic String getCode()
Copyright © 2005–2016 jthink.net. All rights reserved.