|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.farng.mp3.AbstractMP3FileItem
org.farng.mp3.AbstractMP3Tag
org.farng.mp3.filename.FilenameTag
This class represents the filename. To create it, invoke FilenameTagBuilder.createFilenameTagFromMP3File
which returns a complete parsed, evaluated, and matched FilenameTag.
| Constructor Summary | |
protected |
FilenameTag()
Creates a new FilenameTag object. |
|
FilenameTag(FilenameTag copyObject)
Creates a new FilenameTag 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. |
java.lang.String |
composeFilename()
|
void |
delete(java.io.RandomAccessFile file)
removes the specific tag the easiest way. |
java.lang.String |
getAlbumTitle()
|
java.lang.String |
getAuthorComposer()
|
AbstractFilenameComposite |
getComposite()
Returns the composite that this tag will use. |
java.lang.String |
getExtension()
|
AbstractID3v2Frame |
getFrame(java.lang.String identifier)
Returns a frame of this tag |
java.util.Iterator |
getFrameOfType(java.lang.String identifier)
|
ID3v2_4 |
getId3tag()
Returns the ID3v2_4 representation of this tag |
java.lang.String |
getIdentifier()
ID string that usually corresponds to the class name, but can be displayed to the user. |
java.lang.String |
getLeadArtist()
|
MP3File |
getMp3file()
|
int |
getSize()
|
java.lang.String |
getSongComment()
|
java.lang.String |
getSongGenre()
|
java.lang.String |
getSongLyric()
|
java.lang.String |
getSongTitle()
|
java.lang.String |
getTrackNumberOnAlbum()
|
java.lang.String |
getYearReleased()
|
boolean |
hasFrame(java.lang.String identifier)
|
boolean |
hasFrameOfType(java.lang.String identifier)
|
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 |
read(java.io.RandomAccessFile file)
import java.io.IOException; import java.io.RandomAccessFile; read from current file pointer position. |
boolean |
seek(java.io.RandomAccessFile file)
Looks for this tag. |
void |
setAlbumTitle(java.lang.String albumTitle)
|
void |
setAuthorComposer(java.lang.String authorComposer)
|
void |
setComposite(AbstractFilenameComposite composite)
Sets the composite that this tag will use. |
void |
setExtension(java.lang.String extension)
|
void |
setFrame(AbstractID3v2Frame frame)
Sets the frame of this tag |
void |
setId3tag(ID3v2_4 id3tag)
Sets the ID3v2_4 representation of this tag. |
void |
setLeadArtist(java.lang.String leadArtist)
|
void |
setMp3file(MP3File mp3file)
|
void |
setSongComment(java.lang.String songComment)
|
void |
setSongGenre(java.lang.String songGenre)
|
void |
setSongLyric(java.lang.String songLyrics)
|
void |
setSongTitle(java.lang.String songTitle)
|
void |
setTrackNumberOnAlbum(java.lang.String trackNumberOnAlbum)
|
void |
setYearReleased(java.lang.String yearReleased)
|
java.lang.String |
toString()
|
void |
write(AbstractMP3Tag abstractMP3Tag)
This method does nothing, but is called by subclasses for completeness |
void |
write(java.io.RandomAccessFile file)
Method to write this object to the file argument at is current file pointer position. |
| Methods inherited from class org.farng.mp3.AbstractMP3Tag |
equals, isSubsetOf |
| Methods inherited from class org.farng.mp3.AbstractMP3FileItem |
isSubsetOf |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public FilenameTag(FilenameTag copyObject)
protected FilenameTag()
| Method Detail |
public void setComposite(AbstractFilenameComposite composite)
composite - the composite that this tag will use.public AbstractFilenameComposite getComposite()
public void setExtension(java.lang.String extension)
public java.lang.String getExtension()
public void setFrame(AbstractID3v2Frame frame)
frame - the frame to setpublic AbstractID3v2Frame getFrame(java.lang.String identifier)
identifier - ID3v2_4 ID of frame to get
public java.util.Iterator getFrameOfType(java.lang.String identifier)
public void setId3tag(ID3v2_4 id3tag)
id3tag - the ID3v2_4 representation of this tagpublic ID3v2_4 getId3tag()
public java.lang.String getIdentifier()
AbstractMP3FileItem
getIdentifier in class AbstractMP3FileItempublic void setMp3file(MP3File mp3file)
public MP3File getMp3file()
public int getSize()
getSize in class AbstractMP3FileItempublic void append(AbstractMP3Tag abstractMP3Tag)
AbstractMP3Tag
append in class AbstractMP3TagabstractMP3Tag - tag to overwritepublic void append(java.io.RandomAccessFile file)
AbstractMP3Tag
append in class AbstractMP3Tagfile - MP3 file to append to.public java.lang.String composeFilename()
public void delete(java.io.RandomAccessFile file)
AbstractMP3Tag
delete in class AbstractMP3Tagfile - MP3 file to append to.public boolean hasFrame(java.lang.String identifier)
public boolean hasFrameOfType(java.lang.String identifier)
public java.util.Iterator iterator()
iterator in class AbstractMP3Tagpublic void overwrite(AbstractMP3Tag abstractMP3Tag)
AbstractMP3Tag
overwrite in class AbstractMP3TagabstractMP3Tag - tag to overwrite
public void overwrite(java.io.RandomAccessFile file)
throws TagException,
java.io.IOException
AbstractMP3Tag
overwrite in class AbstractMP3Tagfile - MP3 file to overwrite
java.io.IOException - on any I/O error
TagException - on any exception generated by this library.public void read(java.io.RandomAccessFile file)
AbstractMP3FileItem
read in class AbstractMP3FileItemfile - file to read frompublic boolean seek(java.io.RandomAccessFile file)
AbstractMP3Tag
seek in class AbstractMP3Tagfile - MP3 file to overwrite
public java.lang.String toString()
public void write(AbstractMP3Tag abstractMP3Tag)
AbstractMP3Tag
write in class AbstractMP3TagabstractMP3Tag - tag to write to
public void write(java.io.RandomAccessFile file)
throws java.io.IOException,
TagException
AbstractMP3FileItem
write in class AbstractMP3FileItemfile - file to write to
java.io.IOException - on any I/O error
TagExceptionpublic java.lang.String getSongTitle()
getSongTitle in class AbstractMP3Tagpublic java.lang.String getLeadArtist()
getLeadArtist in class AbstractMP3Tagpublic java.lang.String getAlbumTitle()
getAlbumTitle in class AbstractMP3Tagpublic java.lang.String getYearReleased()
getYearReleased in class AbstractMP3Tagpublic java.lang.String getSongComment()
getSongComment in class AbstractMP3Tagpublic java.lang.String getSongGenre()
getSongGenre in class AbstractMP3Tagpublic java.lang.String getTrackNumberOnAlbum()
getTrackNumberOnAlbum in class AbstractMP3Tagpublic java.lang.String getSongLyric()
getSongLyric in class AbstractMP3Tagpublic java.lang.String getAuthorComposer()
getAuthorComposer in class AbstractMP3Tagpublic void setSongTitle(java.lang.String songTitle)
setSongTitle in class AbstractMP3Tagpublic void setLeadArtist(java.lang.String leadArtist)
setLeadArtist in class AbstractMP3Tagpublic void setAlbumTitle(java.lang.String albumTitle)
setAlbumTitle in class AbstractMP3Tagpublic void setYearReleased(java.lang.String yearReleased)
setYearReleased in class AbstractMP3Tagpublic void setSongComment(java.lang.String songComment)
setSongComment in class AbstractMP3Tagpublic void setSongGenre(java.lang.String songGenre)
setSongGenre in class AbstractMP3Tagpublic void setTrackNumberOnAlbum(java.lang.String trackNumberOnAlbum)
setTrackNumberOnAlbum in class AbstractMP3Tagpublic void setSongLyric(java.lang.String songLyrics)
setSongLyric in class AbstractMP3Tagpublic void setAuthorComposer(java.lang.String authorComposer)
setAuthorComposer in class AbstractMP3Tag
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||