|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.metasyntactic.utilities.Tagger
Field Summary | |
protected java.io.File |
file
|
protected boolean |
mergeTags
If the file already has a tag that contains more information then this tag, keep that extra info |
protected Tag |
tag
|
Constructor Summary | |
Tagger(java.io.File file,
Tag tag)
|
Method Summary | |
boolean |
addTag()
Add this tag to this file In general if the tag must be added to the beginning the streams must be used, otherwise it is advisable to implement this with RandomAccessFile to save i/o time |
protected abstract boolean |
checkForTag()
Does the file already have a tag? Note: In this design checkForTag checks for tags of the same type as the tag to be added |
java.io.File |
getFile()
|
Tag |
getTag()
|
protected abstract boolean |
hasThisTag()
Is the tag this file has identical to this tag? |
protected abstract void |
mergeTags()
|
protected abstract boolean |
overwriteTag()
If the current tag can be overwritten (id3v1, or id3v2 with buffers) then use this method. |
abstract boolean |
removeTag()
Remove all the If the tag supports buffers (like Id3v2) it is recommended that you replace the tag with an empty (full buffer) tag. |
void |
setFile(java.io.File file)
|
void |
setTag(Tag tag)
|
protected abstract boolean |
tagHasMoreInformation()
Does the file's current tag contain all the information in this tag and even more? |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.io.File file
protected Tag tag
protected boolean mergeTags
Constructor Detail |
public Tagger(java.io.File file, Tag tag)
Method Detail |
public java.io.File getFile()
public Tag getTag()
public void setFile(java.io.File file)
public void setTag(Tag tag)
protected abstract boolean checkForTag()
protected abstract boolean hasThisTag()
protected abstract boolean tagHasMoreInformation()
protected abstract void mergeTags()
public boolean addTag() throws java.io.IOException
java.io.IOException
public abstract boolean removeTag()
protected abstract boolean overwriteTag()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |