Methods Summary |
---|
public boolean | equals(java.lang.Object o)
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CencSampleEncryptionInformationGroupEntry that = (CencSampleEncryptionInformationGroupEntry) o;
if (isEncrypted != that.isEncrypted) {
return false;
}
if (ivSize != that.ivSize) {
return false;
}
if (!Arrays.equals(kid, that.kid)) {
return false;
}
return true;
|
public java.nio.ByteBuffer | get()
ByteBuffer byteBuffer = ByteBuffer.allocate(20);
IsoTypeWriter.writeUInt24(byteBuffer, isEncrypted);
IsoTypeWriter.writeUInt8(byteBuffer, ivSize);
byteBuffer.put(kid);
byteBuffer.rewind();
return byteBuffer;
|
public int | getEncrypted()
return isEncrypted;
|
public byte | getIvSize()
return ivSize;
|
public byte[] | getKid()
return kid;
|
public int | hashCode()
int result = isEncrypted;
result = 31 * result + (int) ivSize;
result = 31 * result + (kid != null ? Arrays.hashCode(kid) : 0);
return result;
|
public void | parse(java.nio.ByteBuffer byteBuffer)
isEncrypted = IsoTypeReader.readUInt24(byteBuffer);
ivSize = (byte) IsoTypeReader.readUInt8(byteBuffer);
kid = new byte[16];
byteBuffer.get(kid);
|
public void | setEncrypted(int encrypted)
isEncrypted = encrypted;
|
public void | setIvSize(byte ivSize)
this.ivSize = ivSize;
|
public void | setKid(byte[] kid)
assert kid.length == 16;
this.kid = kid;
|
public java.lang.String | toString()
return "CencSampleEncryptionInformationGroupEntry{" +
"isEncrypted=" + isEncrypted +
", ivSize=" + ivSize +
", kid=" + Hex.encodeHex(kid) +
'}";
|