|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jaudiotagger.tag.id3.AbstractTagItem
org.jaudiotagger.tag.id3.AbstractTag
org.jaudiotagger.tag.id3.AbstractID3Tag
org.jaudiotagger.tag.id3.AbstractID3v2Tag
org.jaudiotagger.tag.id3.ID3v22Tag
public class ID3v22Tag
Represents an ID3v2.2 tag.
Field Summary | |
---|---|
static byte |
MAJOR_VERSION
|
static int |
MASK_V22_COMPRESSION
ID3v2.2 Header bit mask |
static int |
MASK_V22_UNSYNCHRONIZATION
ID3v2.2 Header bit mask |
static byte |
RELEASE
|
static byte |
REVISION
|
Fields inherited from class org.jaudiotagger.tag.id3.AbstractID3v2Tag |
---|
frameMap, TAG_HEADER_LENGTH |
Fields inherited from class org.jaudiotagger.tag.id3.AbstractID3Tag |
---|
logger |
Constructor Summary | |
---|---|
ID3v22Tag()
Creates a new empty ID3v2_2 tag. |
|
ID3v22Tag(AbstractTag mp3tag)
Constructs a new tag based upon another tag of different version/type |
|
ID3v22Tag(java.nio.ByteBuffer buffer)
Deprecated. use ID3v22Tag(ByteBuffer,String) instead |
|
ID3v22Tag(java.nio.ByteBuffer buffer,
java.lang.String loggingFilename)
Creates a new ID3v2_2 datatype. |
|
ID3v22Tag(ID3v22Tag copyObject)
Copy Constructor, creates a new ID3v2_2 Tag based on another ID3v2_2 Tag |
Method Summary | |
---|---|
ID3v22Frame |
createFrame(java.lang.String id)
Create Frame |
void |
createStructure()
|
TagField |
createTagField(ID3v22FieldKey id3Key,
java.lang.String value)
Create Frame for Id3 Key Only textual data supported at the moment, should only be used with frames that support a simple string argument. |
void |
deleteTagField(ID3v22FieldKey id3v22FieldKey)
Delete fields with this id3v22FieldKey |
boolean |
equals(java.lang.Object obj)
Is this tag equivalent to another |
java.lang.String |
getFirst(ID3v22FieldKey id3v22FieldKey)
Retrieve the first value that exists for this id3v22key |
java.lang.String |
getIdentifier()
Get full version |
byte |
getMajorVersion()
Retrieve the Major Version |
byte |
getRelease()
Retrieve the Release |
byte |
getRevision()
Retrieve the Revision |
int |
getSize()
Return frame size based upon the sizes of the frames rather than the size including padding recorded in the tag header |
boolean |
isCompression()
|
boolean |
isUnsynchronization()
|
void |
read(java.nio.ByteBuffer byteBuffer)
Read tag from the ByteBuffer |
void |
write(java.io.File file,
long audioStartLocation)
Write tag to file |
void |
write(java.nio.channels.WritableByteChannel channel)
Write tag to channel |
Methods inherited from class org.jaudiotagger.tag.id3.AbstractID3Tag |
---|
toString |
Methods inherited from class org.jaudiotagger.tag.id3.AbstractTagItem |
---|
isSubsetOf |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jaudiotagger.tag.Tag |
---|
toString |
Field Detail |
---|
public static final int MASK_V22_UNSYNCHRONIZATION
public static final int MASK_V22_COMPRESSION
public static final byte RELEASE
public static final byte MAJOR_VERSION
public static final byte REVISION
Constructor Detail |
---|
public ID3v22Tag()
public ID3v22Tag(ID3v22Tag copyObject)
public ID3v22Tag(AbstractTag mp3tag)
public ID3v22Tag(java.nio.ByteBuffer buffer, java.lang.String loggingFilename) throws TagException
buffer
- loggingFilename
-
TagException
public ID3v22Tag(java.nio.ByteBuffer buffer) throws TagException
ID3v22Tag(ByteBuffer,String)
instead
buffer
-
TagException
Method Detail |
---|
public byte getRelease()
getRelease
in class AbstractID3Tag
public byte getMajorVersion()
getMajorVersion
in class AbstractID3Tag
public byte getRevision()
getRevision
in class AbstractID3Tag
public java.lang.String getIdentifier()
AbstractID3Tag
getIdentifier
in class AbstractID3Tag
public int getSize()
getSize
in class AbstractID3v2Tag
public boolean equals(java.lang.Object obj)
AbstractID3v2Tag
equals
in class AbstractID3v2Tag
obj
-
public void read(java.nio.ByteBuffer byteBuffer) throws TagException
read
in class AbstractTagItem
byteBuffer
- to read the tag from
TagException
TagNotFoundException
public void write(java.io.File file, long audioStartLocation) throws java.io.IOException
write
in class AbstractID3v2Tag
file
- The file to write to
java.io.IOException
public void write(java.nio.channels.WritableByteChannel channel) throws java.io.IOException
write
in class AbstractID3v2Tag
channel
-
java.io.IOException
public void createStructure()
createStructure
in class AbstractID3v2Tag
public boolean isUnsynchronization()
public boolean isCompression()
public ID3v22Frame createFrame(java.lang.String id)
createFrame
in class AbstractID3v2Tag
id
- frameid
public TagField createTagField(ID3v22FieldKey id3Key, java.lang.String value) throws KeyNotFoundException, FieldDataInvalidException
id3Key
- value
-
KeyNotFoundException
FieldDataInvalidException
public java.lang.String getFirst(ID3v22FieldKey id3v22FieldKey) throws KeyNotFoundException
id3v22FieldKey
-
KeyNotFoundException
public void deleteTagField(ID3v22FieldKey id3v22FieldKey) throws KeyNotFoundException
id3v22FieldKey
-
KeyNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |