|
||||||||||
| 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
public class 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()
Get the song's album title. |
java.lang.String |
getAuthorComposer()
Get the author/composer. |
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()
|
java.lang.String |
getLeadArtist()
Get the lead artist. |
MP3File |
getMp3file()
|
int |
getSize()
|
java.lang.String |
getSongComment()
Get a song comment. |
java.lang.String |
getSongGenre()
Get the genre. |
java.lang.String |
getSongLyric()
Get the song lyrics. |
java.lang.String |
getSongTitle()
Get the song title. |
java.lang.String |
getTrackNumberOnAlbum()
Get the track number. |
java.lang.String |
getYearReleased()
Get the year the song was released. |
boolean |
hasFrame(java.lang.String identifier)
|
boolean |
hasFrameOfType(java.lang.String identifier)
|
java.util.Iterator |
iterator()
Get an iterator over all tags available. |
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()
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()
MP3Tag
public 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
TagException - on any exception generated by this library.
java.io.IOException - on any I/O errorpublic 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()
toString in class java.lang.Objectpublic 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()
MP3Tag
public java.lang.String getLeadArtist()
MP3Tag
public java.lang.String getAlbumTitle()
MP3Tag
public java.lang.String getYearReleased()
MP3Tag
public java.lang.String getSongComment()
MP3Tag
public java.lang.String getSongGenre()
MP3Tag
public java.lang.String getTrackNumberOnAlbum()
MP3Tag
public java.lang.String getSongLyric()
MP3Tag
public java.lang.String getAuthorComposer()
MP3Tag
public 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 | |||||||||