entagged.audioformats.mp3.util
Class Id3v24TagReader

java.lang.Object
  extended by entagged.audioformats.mp3.util.Id3v24TagReader

public class Id3v24TagReader
extends Object

This class parses an ID3V2 tag from a given ByteBuffer.
It handles the versions 2,3 and 4.

Author:
Rapha?l Slinckx , Christian Laireiter

Constructor Summary
Id3v24TagReader()
          Creates an instance.
 
Method Summary
 Id3v2Tag read(ByteBuffer data, boolean[] ID3Flags, byte version)
          This method reads an ID3V2 tag from the given ByteBuffer at its curren pointer location.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Id3v24TagReader

public Id3v24TagReader()
Creates an instance.

Method Detail

read

public Id3v2Tag read(ByteBuffer data,
                     boolean[] ID3Flags,
                     byte version)
              throws UnsupportedEncodingException
This method reads an ID3V2 tag from the given ByteBuffer at its curren pointer location.

Parameters:
data - ID3V2 tag.
ID3Flags - The flags of the tag header.
version - Version Flag. (used to handle some version specific implementations).
Returns:
An ID3V2 tag representation.
Throws:
UnsupportedEncodingException - Thrown on charset conversions, if system does not support them.


Copyright © 2007-2008. All Rights Reserved.