public class FourCCBytes
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
byte[] |
bytes
The byte array for this 4-cc value.
|
int |
n
The length, i.e.
|
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
void |
set(int tag4cc)
Sets this 4-cc object to match the given 4-cc tag value -- in which
the first zero-valued (or space) 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.
|
public int n
public byte[] bytes
public FourCCBytes()
public FourCCBytes(int n, byte[] bb)
public FourCCBytes(int tag)
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()