Class ID3v2Frame

  • All Implemented Interfaces:
    MP3Frame

    public class ID3v2Frame
    extends Object
    implements MP3Frame
    A frame of ID3v2 data, which is then passed to a handler to be turned into useful data.
    • 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​(InputStream inp)
                                             throws 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 a PushbackInputStream, the bytes read so far are pushed back so that they can be read again. ID3v2 Frames should come before all Audio ones.
        Throws:
        IOException