Methods Summary |
---|
public void | _parseDetails(java.nio.ByteBuffer content)
parseVersionAndFlags(content);
fourBytes = new byte[4];
content.get(fourBytes);
data = new byte[content.remaining()];
content.get(data);
|
protected void | getContent(java.nio.ByteBuffer byteBuffer)
writeVersionAndFlags(byteBuffer);
byteBuffer.put(fourBytes, 0, 4);
byteBuffer.put(data);
|
protected long | getContentSize()
return data.length + 8;
|
public byte[] | getData()
return data;
|
private static com.coremedia.iso.boxes.apple.AppleDataBox | getEmpty()
AppleDataBox appleDataBox = new AppleDataBox();
appleDataBox.setVersion(0);
appleDataBox.setFourBytes(new byte[4]);
return appleDataBox;
|
public byte[] | getFourBytes()
return fourBytes;
|
public static com.coremedia.iso.boxes.apple.AppleDataBox | getStringAppleDataBox()
AppleDataBox appleDataBox = getEmpty();
appleDataBox.setFlags(1);
appleDataBox.setData(new byte[]{0});
return appleDataBox;
|
public static com.coremedia.iso.boxes.apple.AppleDataBox | getUint16AppleDataBox()
AppleDataBox appleDataBox = new AppleDataBox();
appleDataBox.setFlags(21);
appleDataBox.setData(new byte[]{0, 0});
return appleDataBox;
|
public static com.coremedia.iso.boxes.apple.AppleDataBox | getUint32AppleDataBox()
AppleDataBox appleDataBox = new AppleDataBox();
appleDataBox.setFlags(21);
appleDataBox.setData(new byte[]{0, 0, 0, 0});
return appleDataBox;
|
public static com.coremedia.iso.boxes.apple.AppleDataBox | getUint8AppleDataBox()
AppleDataBox appleDataBox = new AppleDataBox();
appleDataBox.setFlags(21);
appleDataBox.setData(new byte[]{0});
return appleDataBox;
|
public void | setData(byte[] data)
this.data = new byte[data.length];
System.arraycopy(data, 0, this.data, 0, data.length);
|
public void | setFourBytes(byte[] fourBytes)
System.arraycopy(fourBytes, 0, this.fourBytes, 0, 4);
|