AsfExtHeaderReaderpublic class AsfExtHeaderReader extends ChunkContainerReader This reader reads an ASF header extension object from an {@link InputStream}
and creates an {@link AsfExtendedHeader} object.
|
Fields Summary |
---|
private static final org.jaudiotagger.audio.asf.data.GUID[] | APPLYINGThe GUID this reader {@linkplain #getApplyingIds() applies to} |
Constructors Summary |
---|
public AsfExtHeaderReader(List toRegister, boolean readChunkOnce)Creates a reader instance, which only utilizes the given list of chunk
readers.
super(toRegister, readChunkOnce);
|
Methods Summary |
---|
public boolean | canFail(){@inheritDoc}
return false;
| protected org.jaudiotagger.audio.asf.data.AsfExtendedHeader | createContainer(long streamPosition, java.math.BigInteger chunkLength, java.io.InputStream stream){@inheritDoc}
Utils.readGUID(stream); // First reserved field (should be a specific
// GUID.
Utils.readUINT16(stream); // Second reserved field (should always be 6)
final long extensionSize = Utils.readUINT32(stream);
assert extensionSize == 0 || extensionSize >= 24;
assert chunkLength.subtract(BigInteger.valueOf(46)).longValue() == extensionSize;
return new AsfExtendedHeader(streamPosition, chunkLength);
| public org.jaudiotagger.audio.asf.data.GUID[] | getApplyingIds(){@inheritDoc}
return APPLYING.clone();
|
|