public class FourCCUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
NULL_FOURCC
The null 4-cc value.
|
Constructor and Description |
---|
FourCCUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
fixFourCCInt(int tag)
Purges spurious trailing space(s) from the given 4-cc tag value:
if such space characters are present a new value is returned in which
they have been replaced with NUL values, but if not the original
valid tag is returned unchanged.
|
static void |
fourCCBytes(int tag,
FourCCBytes fccb)
Sets the given
FourCCBytes object to match the given
4-cc tag value. |
static int |
fourCCInt(java.lang.String name)
Returns the 4-cc value for the given 4-cc name, whose length should
not exceed four.
|
static java.lang.String |
fourCCString(int tag)
Returns the unpadded string representation of the given 4-cc tag.
|
static java.lang.String |
fourCCStringPadded(int tag)
Returns the unpadded string representation of the given 4-cc tag,
padded to length 4 with spaces if necessary.
|
static boolean |
isNonNull(int fourcc)
Tests whether the given 4-cc value is non-null.
|
static boolean |
isNull(int fourcc)
Tests whether the given 4-cc value is null.
|
public static final int NULL_FOURCC
public static int fourCCInt(java.lang.String name)
public static java.lang.String fourCCString(int tag)
public static java.lang.String fourCCStringPadded(int tag)
public static void fourCCBytes(int tag, FourCCBytes fccb)
FourCCBytes
object to match the given
4-cc tag value.public static int fixFourCCInt(int tag)
public static boolean isNull(int fourcc)
public static boolean isNonNull(int fourcc)