public class MetadataBlockHeader
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
MetadataBlockHeader.MetadataBlockType
Enum containing the different Metadata block types.
|
Constructor and Description |
---|
MetadataBlockHeader()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static EncodedElement |
getMetadataBlockHeader(boolean lastBlock,
MetadataBlockHeader.MetadataBlockType type,
int length)
Create a meta-data block header of the given type, and return the result
in a new EncodedElement(so data is ready to be placed directly in FLAC
stream)
|
public MetadataBlockHeader()
public static EncodedElement getMetadataBlockHeader(boolean lastBlock, MetadataBlockHeader.MetadataBlockType type, int length)
lastBlock
- True if this is the last meta-block in the stream. False
otherwise.type
- enum indicating which type of block we're creating.length
- Length of the meta-data block which follows this header.