|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjautil.FourCCBytes
public class FourCCBytes
A representation of a Four-CC (i.e "four-character-code") tag as an array of byte values with a count. The byte values are stored in little-endian order; for convenience of conversions, any trailing bytes are forced to zero.
Field Summary | |
---|---|
byte[] |
bytes
|
int |
n
|
Constructor Summary | |
---|---|
FourCCBytes()
Constructor for an empty 4-cc tag. |
|
FourCCBytes(int tag)
Constructs a new object for the given 4-cc tag. |
|
FourCCBytes(int n,
byte[] bb)
Constructs a new object for the 4-cc tag defined by the given bytes and count value. |
Method Summary | |
---|---|
void |
set(int tag4cc)
Sets this 4-cc object to match the given 4-cc tag value -- in which the first zero-valued byte (in little-endian order) is taken to mark the end of the tag, that is, to define its length. |
void |
set(int n,
byte[] bb)
Sets this 4-cc object to the one defined by the given bytes and count. |
java.lang.String |
toString()
Returns the string representation of this 4-cc object (implicitly using the ISO-8859-1 encoding -- that is, using the identity mapping to convert each byte to a char). |
java.lang.String |
toStringPadded()
Returns the string representation of this 4-cc object, but padded with space characters if necessary to guarantee an overall length of four. |
int |
toTag4CC()
Returns the integer form for this 4-cc object, padded with 0-valued bytes if necessary. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int n
public byte[] bytes
Constructor Detail |
---|
public FourCCBytes()
public FourCCBytes(int n, byte[] bb)
public FourCCBytes(int tag)
Method Detail |
---|
public void set(int n, byte[] bb)
public void set(int tag4cc)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringPadded()
public int toTag4CC()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |