public class Lyrics3v2 extends AbstractLyrics3
Modifier and Type | Field and Description |
---|---|
private java.util.HashMap<java.lang.String,Lyrics3v2Field> |
fieldMap |
TYPE_TAG
logger
Constructor and Description |
---|
Lyrics3v2()
Creates a new Lyrics3v2 datatype.
|
Lyrics3v2(AbstractTag mp3tag)
Creates a new Lyrics3v2 datatype.
|
Lyrics3v2(java.nio.ByteBuffer byteBuffer)
Creates a new Lyrics3v2 datatype.
|
Lyrics3v2(Lyrics3v2 copyObject) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Determines whether another datatype is equal to this tag.
|
Lyrics3v2Field |
getField(java.lang.String identifier)
Gets the value of the frame identified by identifier
|
int |
getFieldCount() |
java.lang.String |
getIdentifier()
ID string that usually corresponds to the class name, but can be
displayed to the user.
|
int |
getSize()
Return size of this item
|
boolean |
hasField(java.lang.String identifier) |
java.util.Iterator<Lyrics3v2Field> |
iterator() |
void |
read(java.nio.ByteBuffer byteBuffer) |
void |
removeField(java.lang.String identifier) |
boolean |
seek(java.nio.ByteBuffer byteBuffer)
TODO implement
|
boolean |
seek(java.io.RandomAccessFile file) |
private int |
seekSize(java.nio.ByteBuffer byteBuffer)
TODO
|
void |
setField(Lyrics3v2Field field) |
java.lang.String |
toString() |
void |
updateField(java.lang.String identifier) |
void |
write(java.io.RandomAccessFile file)
Writes the tag to the file
|
delete
isSubsetOf
private java.util.HashMap<java.lang.String,Lyrics3v2Field> fieldMap
public Lyrics3v2()
public Lyrics3v2(Lyrics3v2 copyObject)
public Lyrics3v2(AbstractTag mp3tag)
mp3tag
- java.lang.UnsupportedOperationException
public Lyrics3v2(java.nio.ByteBuffer byteBuffer) throws TagNotFoundException, java.io.IOException
file
- byteBuffer
- TagNotFoundException
java.io.IOException
public void setField(Lyrics3v2Field field)
field
- public Lyrics3v2Field getField(java.lang.String identifier)
identifier
- The three letter codepublic int getFieldCount()
public java.lang.String getIdentifier()
AbstractTagItem
getIdentifier
in class AbstractTagItem
public int getSize()
AbstractTagItem
getSize
in class AbstractTagItem
public boolean equals(java.lang.Object obj)
AbstractTag
super.equals(obj)
.equals
in class AbstractTag
obj
- public boolean hasField(java.lang.String identifier)
identifier
- public java.util.Iterator<Lyrics3v2Field> iterator()
iterator
in class AbstractTag
public boolean seek(java.nio.ByteBuffer byteBuffer)
seek
in class AbstractTag
byteBuffer
- java.io.IOException
public void read(java.nio.ByteBuffer byteBuffer) throws TagException
read
in class AbstractTagItem
byteBuffer
- file to read fromTagException
- on any exception generated by this library.public void removeField(java.lang.String identifier)
identifier
- public boolean seek(java.io.RandomAccessFile file) throws java.io.IOException
file
- java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public void updateField(java.lang.String identifier)
identifier
- public void write(java.io.RandomAccessFile file) throws java.io.IOException
AbstractTag
write
in class AbstractTag
file
- java.io.IOException
private int seekSize(java.nio.ByteBuffer byteBuffer)
byteBuffer
- Copyright © 2005-2013 java.net. All Rights Reserved.