public final class Id3Decoder extends java.lang.Object implements MetadataDecoder
| Modifier and Type | Class and Description |
|---|---|
static interface |
Id3Decoder.FramePredicate
A predicate for determining whether individual frames should be decoded.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
ID3_HEADER_LENGTH
Length of an ID3 tag header.
|
static int |
ID3_TAG
The first three bytes of a well formed ID3 tag header.
|
| Constructor and Description |
|---|
Id3Decoder() |
Id3Decoder(Id3Decoder.FramePredicate framePredicate) |
| Modifier and Type | Method and Description |
|---|---|
Metadata |
decode(byte[] data,
int size)
Decodes ID3 tags.
|
Metadata |
decode(MetadataInputBuffer inputBuffer)
Decodes a
Metadata element from the provided input buffer. |
public static final int ID3_TAG
public static final int ID3_HEADER_LENGTH
public Id3Decoder()
public Id3Decoder(Id3Decoder.FramePredicate framePredicate)
framePredicate - Determines which frames are decoded. May be null to decode all frames.public Metadata decode(MetadataInputBuffer inputBuffer)
MetadataDecoderMetadata element from the provided input buffer.decode in interface MetadataDecoderinputBuffer - The input buffer to decode.