|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.farng.mp3.AbstractMP3FileItem org.farng.mp3.AbstractMP3Tag org.farng.mp3.id3.AbstractID3 org.farng.mp3.id3.AbstractID3v2
Superclass for all ID3v2 tags
Constructor Summary | |
protected |
AbstractID3v2()
Creates a new AbstractID3v2 object. |
protected |
AbstractID3v2(AbstractID3v2 copyObject)
Creates a new AbstractID3v2 object. |
Method Summary | |
void |
append(AbstractMP3Tag abstractMP3Tag)
This method does nothing, but is called by subclasses for completeness |
void |
append(java.io.RandomAccessFile file)
Appends this tag to the given file. |
protected void |
appendDuplicateFrameId(java.lang.String duplicateFrameId)
|
protected static int |
byteArrayToSize(byte[] buffer)
|
void |
clearFrameMap()
|
protected static void |
decrementPaddingCounter()
|
void |
delete(java.io.RandomAccessFile file)
removes the specific tag the easiest way. |
boolean |
equals(java.lang.Object obj)
Determines whether another object is equal to this tag. |
int |
getDuplicateBytes()
|
java.lang.String |
getDuplicateFrameId()
|
int |
getEmptyFrameBytes()
|
int |
getFileReadBytes()
|
AbstractID3v2Frame |
getFrame(java.lang.String identifier)
|
int |
getFrameCount()
|
java.util.Iterator |
getFrameIterator()
|
java.util.Iterator |
getFrameOfType(java.lang.String identifier)
|
int |
getInvalidFrameBytes()
|
byte |
getMajorVersion()
|
protected static int |
getPaddingCounter()
|
int |
getPaddingSize()
|
byte |
getRevision()
|
boolean |
hasFrame(java.lang.String identifier)
|
boolean |
hasFrameOfType(java.lang.String identifier)
|
protected void |
incrementDuplicateBytes(int duplicateBytes)
|
protected void |
incrementEmptyFrameBytes(int emptyFrameBytes)
|
protected void |
incrementInvalidFrameBytes()
|
protected static void |
incrementPaddingCounter()
|
java.util.Iterator |
iterator()
|
void |
overwrite(AbstractMP3Tag abstractMP3Tag)
This method does nothing, but is called by subclasses for completeness |
void |
overwrite(java.io.RandomAccessFile file)
Overwrites this tag to the given file. |
void |
removeFrame(java.lang.String identifier)
|
void |
removeFrameOfType(java.lang.String identifier)
|
protected static void |
resetPaddingCounter()
|
protected void |
setFileReadBytes(int fileReadSize)
|
void |
setFrame(AbstractID3v2Frame frame)
|
protected void |
setMajorVersion(byte majorVersion)
|
protected void |
setPaddingSize(int paddingSize)
|
protected void |
setRevision(byte revision)
|
protected static byte[] |
sizeToByteArray(int size)
|
java.util.Collection |
values()
|
void |
write(AbstractMP3Tag abstractMP3Tag)
This method does nothing, but is called by subclasses for completeness |
Methods inherited from class org.farng.mp3.AbstractMP3Tag |
getAlbumTitle, getAuthorComposer, getLeadArtist, getSongComment, getSongGenre, getSongLyric, getSongTitle, getTrackNumberOnAlbum, getYearReleased, isSubsetOf, seek, setAlbumTitle, setAuthorComposer, setLeadArtist, setSongComment, setSongGenre, setSongLyric, setSongTitle, setTrackNumberOnAlbum, setYearReleased |
Methods inherited from class org.farng.mp3.AbstractMP3FileItem |
getIdentifier, getSize, isSubsetOf, read, write |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected AbstractID3v2()
protected AbstractID3v2(AbstractID3v2 copyObject)
Method Detail |
public void setFrame(AbstractID3v2Frame frame)
public AbstractID3v2Frame getFrame(java.lang.String identifier)
public int getFrameCount()
public void clearFrameMap()
public java.util.Iterator getFrameIterator()
public java.util.Iterator getFrameOfType(java.lang.String identifier)
public boolean hasFrame(java.lang.String identifier)
public boolean hasFrameOfType(java.lang.String identifier)
public java.util.Iterator iterator()
iterator
in class AbstractMP3Tag
public void removeFrame(java.lang.String identifier)
public void removeFrameOfType(java.lang.String identifier)
public java.util.Collection values()
public void append(AbstractMP3Tag abstractMP3Tag)
AbstractMP3Tag
append
in class AbstractMP3Tag
abstractMP3Tag
- tag to overwritepublic void append(java.io.RandomAccessFile file) throws java.io.IOException, TagException
AbstractMP3Tag
append
in class AbstractMP3Tag
file
- MP3 file to append to.
TagException
- on any exception generated by this library.
java.io.IOException
- on any I/O errorpublic void delete(java.io.RandomAccessFile file) throws java.io.IOException
AbstractMP3Tag
delete
in class AbstractMP3Tag
file
- MP3 file to append to.
java.io.IOException
- on any I/O errorpublic boolean equals(java.lang.Object obj)
AbstractMP3Tag
super.equals(object)
.
equals
in class AbstractMP3Tag
public void overwrite(AbstractMP3Tag abstractMP3Tag)
AbstractMP3Tag
overwrite
in class AbstractMP3Tag
abstractMP3Tag
- tag to overwritepublic void overwrite(java.io.RandomAccessFile file) throws java.io.IOException, TagException
AbstractMP3Tag
overwrite
in class AbstractMP3Tag
file
- MP3 file to overwrite
java.io.IOException
- on any I/O error
TagException
- on any exception generated by this library.public void write(AbstractMP3Tag abstractMP3Tag)
AbstractMP3Tag
write
in class AbstractMP3Tag
abstractMP3Tag
- tag to write toprotected static int byteArrayToSize(byte[] buffer)
protected static byte[] sizeToByteArray(int size)
protected static void resetPaddingCounter()
protected static void incrementPaddingCounter()
protected static void decrementPaddingCounter()
protected static int getPaddingCounter()
public byte getMajorVersion()
protected void setMajorVersion(byte majorVersion)
public byte getRevision()
protected void setRevision(byte revision)
public int getDuplicateBytes()
public java.lang.String getDuplicateFrameId()
public int getEmptyFrameBytes()
public int getFileReadBytes()
protected void setFileReadBytes(int fileReadSize)
protected void setPaddingSize(int paddingSize)
protected void incrementDuplicateBytes(int duplicateBytes)
protected void incrementEmptyFrameBytes(int emptyFrameBytes)
protected void incrementInvalidFrameBytes()
protected void appendDuplicateFrameId(java.lang.String duplicateFrameId)
public int getInvalidFrameBytes()
public int getPaddingSize()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |