Modifier and Type | Class and Description |
---|---|
protected static class |
ID3v2Frame.RawTag |
protected class |
ID3v2Frame.RawTagIterator
Iterates over id3v2 raw tags.
|
protected static class |
ID3v2Frame.TextEncoding |
Modifier and Type | Field and Description |
---|---|
protected static ID3v2Frame.TextEncoding[] |
encodings |
Modifier and Type | Method and Description |
---|---|
static MP3Frame |
createFrameIfPresent(InputStream inp)
Returns the next ID3v2 Frame in
the file, or null if the next batch of data
doesn't correspond to either an ID3v2 header.
|
protected static int |
get7BitsInt(byte[] data,
int offset)
AKA a Synchsafe integer.
|
protected static ID3Tags.ID3Comment |
getComment(byte[] data,
int offset,
int length)
Builds up the ID3 comment, by parsing and extracting
the comment string parts from the given data.
|
byte[] |
getData() |
byte[] |
getExtendedHeader() |
int |
getFlags() |
protected static int |
getInt(byte[] data) |
protected static int |
getInt(byte[] data,
int offset) |
protected static int |
getInt2(byte[] data,
int offset) |
protected static int |
getInt3(byte[] data,
int offset) |
int |
getLength() |
int |
getMajorVersion() |
static int |
getMaxRecordSize() |
int |
getMinorVersion() |
protected static String |
getString(byte[] data,
int offset,
int length)
Returns the String at the given
offset and length.
|
protected static String |
getTagString(byte[] data,
int offset,
int length)
Returns the (possibly null padded) String at the given offset and
length.
|
protected static byte[] |
readFully(InputStream inp,
int length) |
protected static byte[] |
readFully(InputStream inp,
int length,
boolean shortDataIsFatal) |
static void |
setMaxRecordSize(int maxRecordSize) |
protected static final ID3v2Frame.TextEncoding[] encodings
public static void setMaxRecordSize(int maxRecordSize)
public static MP3Frame createFrameIfPresent(InputStream inp) throws IOException
PushbackInputStream
, the bytes read so far are pushed back so
that they can be read again.
ID3v2 Frames should come before all Audio ones.IOException
protected static int getInt(byte[] data)
protected static int getInt(byte[] data, int offset)
protected static int getInt3(byte[] data, int offset)
protected static int getInt2(byte[] data, int offset)
protected static int get7BitsInt(byte[] data, int offset)
protected static byte[] readFully(InputStream inp, int length) throws IOException
IOException
protected static byte[] readFully(InputStream inp, int length, boolean shortDataIsFatal) throws IOException
IOException
protected static String getTagString(byte[] data, int offset, int length)
protected static ID3Tags.ID3Comment getComment(byte[] data, int offset, int length)
protected static String getString(byte[] data, int offset, int length)
public static int getMaxRecordSize()
public int getMajorVersion()
public int getMinorVersion()
public int getFlags()
public int getLength()
public byte[] getExtendedHeader()
public byte[] getData()
Copyright © 2007–2023 The Apache Software Foundation. All rights reserved.