Methods Summary |
---|
protected void | build(java.nio.ByteBuffer raw)Build from data
After returning buffers position will be after the end of this atom
//Read the raw data into byte array
this.dataBytes = new byte[dataSize];
for (int i = 0; i < dataBytes.length; i++)
{
this.dataBytes[i] = raw.get();
}
|
public void | copyContent(org.jaudiotagger.tag.TagField field)
throw new UnsupportedOperationException("not done");
|
public byte[] | getData()
return this.dataBytes;
|
protected byte[] | getDataBytes()Used when creating raw content
return dataBytes;
|
public int | getDataSize()
return dataSize;
|
public Mp4FieldType | getFieldType()
return Mp4FieldType.IMPLICIT;
|
public byte[] | getRawContent()
logger.fine("Getting Raw data for:" + getId());
try
{
ByteArrayOutputStream outerbaos = new ByteArrayOutputStream();
outerbaos.write(Utils.getSizeBEInt32(Mp4BoxHeader.HEADER_LENGTH + dataSize));
outerbaos.write(Utils.getDefaultBytes(getId(), "ISO-8859-1"));
outerbaos.write(dataBytes);
System.out.println("SIZE" + outerbaos.size());
return outerbaos.toByteArray();
}
catch (IOException ioe)
{
//This should never happen as were not actually writing to/from a file
throw new RuntimeException(ioe);
}
|
public boolean | isBinary()
return true;
|
public boolean | isEmpty()
return this.dataBytes.length == 0;
|
public void | setData(byte[] d)
this.dataBytes = d;
|