|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjautil.FourCCUtil
public class FourCCUtil
FourCCUtil provides a set of class (that is, static) utility methods for handling four-cc tags.
Field Summary | |
---|---|
static int |
NULL_FOURCC
The null 4-cc value. |
Constructor Summary | |
---|---|
FourCCUtil()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NULL_FOURCC
Constructor Detail |
---|
public FourCCUtil()
Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |