|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.blinkenlights.jid3.MediaFile
| Field Summary | |
protected IFileSource |
m_oFileSource
|
protected ID3V1Tag |
m_oID3V1Tag
|
protected ID3V2Tag |
m_oID3V2Tag
|
| Constructor Summary | |
MediaFile(java.io.File oSourceFile)
Constructor for a media file object, representing a given file. |
|
MediaFile(IFileSource oFileSource)
|
|
| Method Summary | |
abstract ID3V1Tag |
getID3V1Tag()
Get the ID3 V1 tag from this file. |
abstract ID3V2Tag |
getID3V2Tag()
Get the ID3 V2 tag from this file. |
abstract ID3Tag[] |
getTags()
Get any tags stored in the file. |
abstract void |
removeID3V1Tag()
Remove V1 tags from this file if present. |
abstract void |
removeID3V2Tag()
Remove V2 tags from this file if present. |
abstract void |
removeTags()
Remove both V1 and V2 tags from this file if present. |
ID3Tag |
setID3Tag(ID3Tag oID3Tag)
Set an ID3 tag in this object. |
abstract void |
sync()
Update the actual file to reflect the current state of the tags as set in this object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected IFileSource m_oFileSource
protected ID3V1Tag m_oID3V1Tag
protected ID3V2Tag m_oID3V2Tag
| Constructor Detail |
public MediaFile(java.io.File oSourceFile)
oSourceFile - the file which this object representspublic MediaFile(IFileSource oFileSource)
| Method Detail |
public abstract void sync()
throws ID3Exception
ID3Exception - if an error occurs updating the file
public abstract ID3Tag[] getTags()
throws ID3Exception
ID3Exception - if there is any error reading the file
public abstract ID3V1Tag getID3V1Tag()
throws ID3Exception
ID3Exception - if there is an error reading the file
public abstract ID3V2Tag getID3V2Tag()
throws ID3Exception
ID3Exception - if there is an error reading the file
public abstract void removeTags()
throws ID3Exception
ID3Exception - if there is an error processing the file
public abstract void removeID3V1Tag()
throws ID3Exception
ID3Exception - if there is an error processing the file
public abstract void removeID3V2Tag()
throws ID3Exception
ID3Exception - if there is an error processing the filepublic ID3Tag setID3Tag(ID3Tag oID3Tag)
oID3Tag - tag to be set for this media file
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||