Methods Summary |
---|
public java.nio.ByteBuffer | getData()
int size = 4 + 2;
for (PlayReadyRecord record : records) {
size += 2 + 2;
size += record.getValue().rewind().limit();
}
ByteBuffer byteBuffer = ByteBuffer.allocate(size);
IsoTypeWriter.writeUInt32BE(byteBuffer, size);
IsoTypeWriter.writeUInt16BE(byteBuffer, records.size());
for (PlayReadyRecord record : records) {
IsoTypeWriter.writeUInt16BE(byteBuffer, record.type);
IsoTypeWriter.writeUInt16BE(byteBuffer, record.getValue().limit());
ByteBuffer tmp4debug = record.getValue();
byteBuffer.put(tmp4debug);
}
return byteBuffer;
|
public java.util.List | getRecords()
return Collections.unmodifiableList(records);
|
public void | parse(java.nio.ByteBuffer byteBuffer)
/*
Length DWORD 32
PlayReady Record Count WORD 16
PlayReady Records See Text Varies
*/
length = IsoTypeReader.readUInt32BE(byteBuffer);
int recordCount = IsoTypeReader.readUInt16BE(byteBuffer);
records = PlayReadyRecord.createFor(byteBuffer, recordCount);
|
public void | setRecords(java.util.List records)
this.records = records;
|
public java.lang.String | toString()
final StringBuilder sb = new StringBuilder();
sb.append("PlayReadyHeader");
sb.append("{length=").append(length);
sb.append(", recordCount=").append(records.size());
sb.append(", records=").append(records);
sb.append('}");
return sb.toString();
|