|
||||||||||
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.AbstractID3v1Tag
org.jaudiotagger.tag.id3.ID3v1Tag
org.jaudiotagger.tag.id3.ID3v11Tag
public class ID3v11Tag
Represents an ID3v11 tag.
Field Summary |
---|
Fields inherited from class org.jaudiotagger.tag.id3.AbstractID3v1Tag |
---|
logger |
Constructor Summary | |
---|---|
ID3v11Tag()
Creates a new ID3v11 datatype. |
|
ID3v11Tag(AbstractTag mp3tag)
Creates a new ID3v11 datatype from a non v11 tag |
|
ID3v11Tag(ID3v11Tag copyObject)
|
|
ID3v11Tag(java.io.RandomAccessFile file)
Deprecated. use ID3v11Tag(RandomAccessFile,String) instead |
|
ID3v11Tag(java.io.RandomAccessFile file,
java.lang.String loggingFilename)
Creates a new ID3v1_1 datatype. |
Method Summary | |
---|---|
void |
addTrack(java.lang.String track)
Adds a track to the tag. |
void |
createStructure()
Create strcutured representation of this item. |
boolean |
equals(java.lang.Object obj)
Compares Object with this only returns true if both v1_1 tags with all fields set to same value |
java.lang.String |
getFirstComment()
Get Comment |
java.lang.String |
getFirstTrack()
Return the track number as a String. |
byte |
getMajorVersion()
Retrieve the Major Version |
byte |
getRelease()
Retrieve the Release |
byte |
getRevision()
Retrieve the Revision |
java.util.List |
getTrack()
|
void |
read(java.nio.ByteBuffer byteBuffer)
Read in a tag from the ByteBuffer |
boolean |
seek(java.nio.ByteBuffer byteBuffer)
Find identifer within byteBuffer to indicate that a v11 tag exists within the buffer |
void |
set(TagField field)
|
void |
setComment(java.lang.String comment)
Set Comment |
void |
setTrack(java.lang.String trackValue)
Set the track, v11 stores track numbers in a single byte value so can only handle a simple number in the range 0-255. |
void |
write(java.io.RandomAccessFile file)
Write this representation of tag to the file indicated |
Methods inherited from class org.jaudiotagger.tag.id3.ID3v1Tag |
---|
add, addAlbum, addArtist, addComment, addGenre, addTitle, addYear, createTagField, deleteTagField, get, get, getAlbum, getArtist, getComment, getEncoding, getFieldCount, getFields, getFirst, getFirst, getFirstAlbum, getFirstArtist, getFirstField, getFirstGenre, getFirstTitle, getFirstYear, getGenre, getTitle, getYear, hasCommonFields, hasField, isEmpty, iterator, setAlbum, setArtist, setEncoding, setGenre, setTitle, setYear |
Methods inherited from class org.jaudiotagger.tag.id3.AbstractID3v1Tag |
---|
delete, getSize |
Methods inherited from class org.jaudiotagger.tag.id3.AbstractID3Tag |
---|
getIdentifier, 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 |
Constructor Detail |
---|
public ID3v11Tag()
public ID3v11Tag(ID3v11Tag copyObject)
public ID3v11Tag(AbstractTag mp3tag)
mp3tag
-
java.lang.UnsupportedOperationException
public ID3v11Tag(java.io.RandomAccessFile file, java.lang.String loggingFilename) throws TagNotFoundException, java.io.IOException
file
- loggingFilename
-
TagNotFoundException
java.io.IOException
public ID3v11Tag(java.io.RandomAccessFile file) throws TagNotFoundException, java.io.IOException
ID3v11Tag(RandomAccessFile,String)
instead
file
-
TagNotFoundException
java.io.IOException
Method Detail |
---|
public byte getRelease()
getRelease
in class ID3v1Tag
public byte getMajorVersion()
getMajorVersion
in class ID3v1Tag
public byte getRevision()
getRevision
in class ID3v1Tag
public void setComment(java.lang.String comment)
setComment
in interface Tag
setComment
in class ID3v1Tag
comment
- public java.lang.String getFirstComment()
getFirstComment
in interface Tag
getFirstComment
in class ID3v1Tag
public void setTrack(java.lang.String trackValue)
setTrack
in interface Tag
setTrack
in class ID3v1Tag
trackValue
- public java.lang.String getFirstTrack()
getFirstTrack
in interface Tag
getFirstTrack
in class ID3v1Tag
public void addTrack(java.lang.String track)
Tag
addTrack
in interface Tag
addTrack
in class ID3v1Tag
track
- Trackpublic java.util.List getTrack()
getTrack
in interface Tag
getTrack
in class ID3v1Tag
public void set(TagField field)
set
in interface Tag
set
in class ID3v1Tag
public boolean equals(java.lang.Object obj)
equals
in class ID3v1Tag
obj
- Comparing Object
public boolean seek(java.nio.ByteBuffer byteBuffer)
seek
in class ID3v1Tag
byteBuffer
-
public void read(java.nio.ByteBuffer byteBuffer) throws TagNotFoundException
read
in class ID3v1Tag
byteBuffer
- from where to read in a tag
TagNotFoundException
- if unable to read a tag in the byteBufferpublic void write(java.io.RandomAccessFile file) throws java.io.IOException
write
in class ID3v1Tag
file
- that this tag should be written to
java.io.IOException
- thrown if there were problems writing to the filepublic void createStructure()
ID3v1Tag
createStructure
in class ID3v1Tag
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |