Methods Summary |
---|
public void | _parseDetails(java.nio.ByteBuffer content)
parseVersionAndFlags(content);
defaultAlgorithmId = IsoTypeReader.readUInt24(content);
defaultIvSize = IsoTypeReader.readUInt8(content);
default_KID = new byte[16];
content.get(default_KID);
|
public boolean | equals(java.lang.Object o)
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
AbstractTrackEncryptionBox that = (AbstractTrackEncryptionBox) o;
if (defaultAlgorithmId != that.defaultAlgorithmId) return false;
if (defaultIvSize != that.defaultIvSize) return false;
if (!Arrays.equals(default_KID, that.default_KID)) return false;
return true;
|
protected void | getContent(java.nio.ByteBuffer byteBuffer)
writeVersionAndFlags(byteBuffer);
IsoTypeWriter.writeUInt24(byteBuffer, defaultAlgorithmId);
IsoTypeWriter.writeUInt8(byteBuffer, defaultIvSize);
byteBuffer.put(default_KID);
|
protected long | getContentSize()
return 24;
|
public int | getDefaultAlgorithmId()
return defaultAlgorithmId;
|
public int | getDefaultIvSize()
return defaultIvSize;
|
public java.lang.String | getDefault_KID()
ByteBuffer b = ByteBuffer.wrap(default_KID);
b.order(ByteOrder.BIG_ENDIAN);
return new UUID(b.getLong(), b.getLong()).toString();
|
public int | hashCode()
int result = defaultAlgorithmId;
result = 31 * result + defaultIvSize;
result = 31 * result + (default_KID != null ? Arrays.hashCode(default_KID) : 0);
return result;
|
public void | setDefaultAlgorithmId(int defaultAlgorithmId)
this.defaultAlgorithmId = defaultAlgorithmId;
|
public void | setDefaultIvSize(int defaultIvSize)
this.defaultIvSize = defaultIvSize;
|
public void | setDefault_KID(byte[] default_KID)
this.default_KID = default_KID;
|