Methods Summary |
---|
protected void | build(java.nio.ByteBuffer raw)
Mp4BoxHeader header = new Mp4BoxHeader(raw);
dataSize = header.getDataLength();
//Skip the version and length fields
raw.position(raw.position() + Mp4DataBox.PRE_DATA_LENGTH);
//Read the raw data into byte array
this.dataBytes = new byte[dataSize - Mp4DataBox.PRE_DATA_LENGTH];
for (int i = 0; i < dataBytes.length; i++)
{
this.dataBytes[i] = raw.get();
}
//After returning buffers position will be after the end of this atom
|
public void | copyContent(org.jaudiotagger.tag.TagField field)
if (field instanceof Mp4TagBinaryField)
{
this.dataBytes = ((Mp4TagBinaryField) field).getData();
this.isBinary = field.isBinary();
}
|
public byte[] | getData()
return this.dataBytes;
|
protected byte[] | getDataBytes()Used when creating raw content
return dataBytes;
|
public int | getDataSize()
return dataSize;
|
public Mp4FieldType | getFieldType()
//TODO dont know what value this should be do we actually have any binary fields other
//than cover art
return Mp4FieldType.IMPLICIT;
|
public boolean | isBinary()
return isBinary;
|
public boolean | isEmpty()
return this.dataBytes.length == 0;
|
public void | setData(byte[] d)
this.dataBytes = d;
|