Package org.apache.tika.parser.mp3
Class ID3v2Frame
- java.lang.Object
-
- org.apache.tika.parser.mp3.ID3v2Frame
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MP3Frame
createFrameIfPresent(java.io.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.byte[]
getData()
byte[]
getExtendedHeader()
int
getFlags()
int
getLength()
int
getMajorVersion()
int
getMinorVersion()
-
-
-
Method Detail
-
getMajorVersion
public int getMajorVersion()
-
getMinorVersion
public int getMinorVersion()
-
getFlags
public int getFlags()
-
getLength
public int getLength()
-
getExtendedHeader
public byte[] getExtendedHeader()
-
getData
public byte[] getData()
-
createFrameIfPresent
public static MP3Frame createFrameIfPresent(java.io.InputStream inp) throws java.io.IOException
Returns the next ID3v2 Frame in the file, or null if the next batch of data doesn't correspond to either an ID3v2 header. If no ID3v2 frame could be detected and the passed in input stream is aPushbackInputStream
, the bytes read so far are pushed back so that they can be read again. ID3v2 Frames should come before all Audio ones.- Throws:
java.io.IOException
-
-