|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.farng.mp3.TagOptionSingleton
Options that are used for every object and class in this library.
Method Summary | |
void |
addEndWordDelimiter(java.lang.String wordDelimiter)
|
void |
addFilenameDelimiter(java.lang.String delimiter)
|
void |
addKeyword(java.lang.Class id3v2FrameBodyClass,
java.lang.String keyword)
|
void |
addParenthesis(java.lang.String open,
java.lang.String close)
|
void |
addReplaceWord(java.lang.String oldWord,
java.lang.String newWord)
|
void |
addStartWordDelimiter(java.lang.String wordDelimiter)
|
void |
addUpperLowerCaseWord(java.lang.String word)
|
java.lang.String |
getCloseParenthesis(java.lang.String open)
|
int |
getDefaultSaveMode()
|
java.util.Iterator |
getEndWordDelimiterIterator()
|
java.util.Iterator |
getFilenameDelimiterIterator()
|
float |
getId3v2PaddingMultiplier()
Returns the factor to increase the id3v2 padding size. |
int |
getId3v2PaddingSize()
Returns the initial ID3v2 padding length. |
static TagOptionSingleton |
getInstance()
|
static TagOptionSingleton |
getInstance(java.lang.Object instanceKey)
|
static java.lang.Object |
getInstanceKey()
|
java.util.Iterator |
getKeywordIterator()
|
java.util.Iterator |
getKeywordListIterator(java.lang.Class id3v2_4FrameBody)
|
java.lang.String |
getLanguage()
Returns the default language for any ID3v2 tag frames which require it. |
boolean |
getLyrics3SaveField(java.lang.String id)
Returns true if we should save the Lyrics3 field asked for in the argument. |
java.util.Map |
getLyrics3SaveFieldMap()
|
java.lang.String |
getNewReplaceWord(java.lang.String oldWord)
|
int |
getNumberMP3SyncFrame()
Returns the number of MP3 frames to sync when trying to find the start of the MP3 frame data. |
java.util.Iterator |
getOldReplaceWordIterator()
|
java.util.Iterator |
getOpenParenthesisIterator()
|
byte |
getPlayCounterSize()
Returns the default play counter size for the PCNT ID3v2 frame. |
java.util.Iterator |
getStartWordDelimiterIterator()
|
byte |
getTextEncoding()
Returns the default text encoding format for ID3v2 tags which require it. |
byte |
getTimeStampFormat()
Returns the default time stamp format for ID3v2 tags which require it. |
java.util.Iterator |
getUpperLowerCaseWordListIterator()
|
boolean |
isCloseParenthesis(java.lang.String close)
|
boolean |
isCompositeMatchOverwrite()
|
boolean |
isFilenameTagSave()
|
boolean |
isId3v1Save()
|
boolean |
isId3v1SaveAlbum()
|
boolean |
isId3v1SaveArtist()
|
boolean |
isId3v1SaveComment()
|
boolean |
isId3v1SaveGenre()
|
boolean |
isId3v1SaveTitle()
|
boolean |
isId3v1SaveTrack()
|
boolean |
isId3v1SaveYear()
|
boolean |
isId3v2KeepEmptyFrameIfRead()
|
boolean |
isId3v2PaddingCopyTag()
|
boolean |
isId3v2PaddingWillShorten()
|
boolean |
isId3v2Save()
|
boolean |
isId3v2SaveEmptyFrame()
|
boolean |
isId3v2SaveExtendedHeader()
|
boolean |
isLyrics3KeepEmptyFieldIfRead()
|
boolean |
isLyrics3Save()
|
boolean |
isLyrics3SaveEmptyField()
|
boolean |
isOpenParenthesis(java.lang.String open)
|
boolean |
isOriginalSavedAfterAdjustingID3v2Padding()
|
void |
setCompositeMatchOverwrite(boolean compositeMatchOverwrite)
|
void |
setDefaultSaveMode(int defaultSaveMode)
|
void |
setFilenameTagSave(boolean filenameTagSave)
|
void |
setId3v1Save(boolean id3v1Save)
|
void |
setId3v1SaveAlbum(boolean id3v1SaveAlbum)
|
void |
setId3v1SaveArtist(boolean id3v1SaveArtist)
|
void |
setId3v1SaveComment(boolean id3v1SaveComment)
|
void |
setId3v1SaveGenre(boolean id3v1SaveGenre)
|
void |
setId3v1SaveTitle(boolean id3v1SaveTitle)
|
void |
setId3v1SaveTrack(boolean id3v1SaveTrack)
|
void |
setId3v1SaveYear(boolean id3v1SaveYear)
|
void |
setId3v2KeepEmptyFrameIfRead(boolean id3v2KeepEmptyFrameIfRead)
|
void |
setId3v2PaddingCopyTag(boolean id3v2PaddingCopyTag)
|
void |
setId3v2PaddingMultiplier(float mult)
Sets the factor to increase the id3v2 padding size. |
void |
setId3v2PaddingSize(int size)
Sets the initial ID3v2 padding length. |
void |
setId3v2PaddingWillShorten(boolean id3v2PaddingWillShorten)
|
void |
setId3v2Save(boolean id3v2Save)
|
void |
setId3v2SaveEmptyFrame(boolean id3v2SaveEmptyFrame)
|
void |
setId3v2SaveExtendedHeader(boolean id3v2SaveExtendedHeader)
|
void |
setInstanceKey(java.lang.Object instanceKey)
|
void |
setLanguage(java.lang.String language)
Sets the default language for any ID3v2 tag frames which require it. |
void |
setLyrics3KeepEmptyFieldIfRead(boolean lyrics3KeepEmptyFieldIfRead)
|
void |
setLyrics3Save(boolean lyrics3Save)
|
void |
setLyrics3SaveEmptyField(boolean lyrics3SaveEmptyField)
|
void |
setLyrics3SaveField(java.lang.String id,
boolean save)
Sets if we should save the Lyrics3 field. |
void |
setNumberMP3SyncFrame(int numberMP3SyncFrame)
Sets the number of MP3 frames to sync when trying to find the start of the MP3 frame data. |
void |
setOriginalSavedAfterAdjustingID3v2Padding(boolean originalSavedAfterAdjustingID3v2Padding)
|
void |
setPlayCounterSize(byte size)
Sets the default play counter size for the PCNT ID3v2 frame. |
void |
setTextEncoding(byte enc)
Sets the default text encoding for any ID3v2 tag frames which require it. |
void |
setTimeStampFormat(byte tsf)
Sets the default time stamp format for ID3v2 tags which require it. |
void |
setToDefault()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static TagOptionSingleton getInstance()
public static TagOptionSingleton getInstance(java.lang.Object instanceKey)
public java.lang.String getCloseParenthesis(java.lang.String open)
public boolean isCloseParenthesis(java.lang.String close)
public void setCompositeMatchOverwrite(boolean compositeMatchOverwrite)
public boolean isCompositeMatchOverwrite()
public void setDefaultSaveMode(int defaultSaveMode)
public int getDefaultSaveMode()
public void setFilenameTagSave(boolean filenameTagSave)
public boolean isFilenameTagSave()
public boolean isId3v2SaveExtendedHeader()
public void setInstanceKey(java.lang.Object instanceKey)
public static java.lang.Object getInstanceKey()
public java.util.Iterator getEndWordDelimiterIterator()
public java.util.Iterator getFilenameDelimiterIterator()
public void setId3v1Save(boolean id3v1Save)
public boolean isId3v1Save()
public void setId3v1SaveAlbum(boolean id3v1SaveAlbum)
public boolean isId3v1SaveAlbum()
public void setId3v1SaveArtist(boolean id3v1SaveArtist)
public boolean isId3v1SaveArtist()
public void setId3v1SaveComment(boolean id3v1SaveComment)
public boolean isId3v1SaveComment()
public void setId3v1SaveGenre(boolean id3v1SaveGenre)
public boolean isId3v1SaveGenre()
public void setId3v1SaveTitle(boolean id3v1SaveTitle)
public boolean isId3v1SaveTitle()
public void setId3v1SaveTrack(boolean id3v1SaveTrack)
public boolean isId3v1SaveTrack()
public void setId3v1SaveYear(boolean id3v1SaveYear)
public boolean isId3v1SaveYear()
public void setId3v2KeepEmptyFrameIfRead(boolean id3v2KeepEmptyFrameIfRead)
public boolean isId3v2KeepEmptyFrameIfRead()
public void setId3v2PaddingCopyTag(boolean id3v2PaddingCopyTag)
public boolean isId3v2PaddingCopyTag()
public void setId3v2PaddingMultiplier(float mult)
mult
- new factor to increase the id3v2 padding size.public float getId3v2PaddingMultiplier()
public void setId3v2PaddingSize(int size)
willShorten
setting will not make the length shorter than this value.
size
- the new initial ID3v2 padding lengthpublic int getId3v2PaddingSize()
willShorten
setting will not make the length shorter than this value.
public void setId3v2PaddingWillShorten(boolean id3v2PaddingWillShorten)
public boolean isId3v2PaddingWillShorten()
public void setId3v2Save(boolean id3v2Save)
public boolean isId3v2Save()
public void setId3v2SaveEmptyFrame(boolean id3v2SaveEmptyFrame)
public boolean isId3v2SaveEmptyFrame()
public void setId3v2SaveExtendedHeader(boolean id3v2SaveExtendedHeader)
public java.util.Iterator getKeywordIterator()
public java.util.Iterator getKeywordListIterator(java.lang.Class id3v2_4FrameBody)
public void setLanguage(java.lang.String language)
language
- language ID, [ISO-639-2] ISO/FDIS 639-2 definitionpublic java.lang.String getLanguage()
public void setLyrics3KeepEmptyFieldIfRead(boolean lyrics3KeepEmptyFieldIfRead)
public boolean isLyrics3KeepEmptyFieldIfRead()
public void setLyrics3Save(boolean lyrics3Save)
public boolean isLyrics3Save()
public void setLyrics3SaveEmptyField(boolean lyrics3SaveEmptyField)
public boolean isLyrics3SaveEmptyField()
public void setLyrics3SaveField(java.lang.String id, boolean save)
id
- Lyrics3 id stringsave
- true if you want to save this specific Lyrics3 field.public boolean getLyrics3SaveField(java.lang.String id)
id
- Lyrics3 id string
public java.util.Map getLyrics3SaveFieldMap()
public java.lang.String getNewReplaceWord(java.lang.String oldWord)
public void setNumberMP3SyncFrame(int numberMP3SyncFrame)
numberMP3SyncFrame
- number of MP3 frames to syncpublic int getNumberMP3SyncFrame()
public java.util.Iterator getOldReplaceWordIterator()
public boolean isOpenParenthesis(java.lang.String open)
public java.util.Iterator getOpenParenthesisIterator()
public void setOriginalSavedAfterAdjustingID3v2Padding(boolean originalSavedAfterAdjustingID3v2Padding)
public boolean isOriginalSavedAfterAdjustingID3v2Padding()
public void setPlayCounterSize(byte size)
size
- the default play counter size for the PCNT ID3v2 framepublic byte getPlayCounterSize()
public java.util.Iterator getStartWordDelimiterIterator()
public void setTextEncoding(byte enc)
$00 ISO-8859-1 [ISO-8859-1]. Terminated with $00.
$01 UTF-16 [UTF-16] encoded Unicode [UNICODE] with
BOM. All strings in the same frame SHALL have the same byteorder. Terminated with $00 00.
$02 UTF-16BE
[UTF-16] encoded Unicode [UNICODE] without BOM. Terminated with $00 00.
$03 UTF-8 [UTF-8] encoded Unicode
[UNICODE]. Terminated with $00.
enc
- new default text encodingpublic byte getTextEncoding()
$00 ISO-8859-1 [ISO-8859-1]. Terminated with $00.
$01 UTF-16 [UTF-16] encoded Unicode [UNICODE] with
BOM. All strings in the same frame SHALL have the same byteorder. Terminated with $00 00.
$02 UTF-16BE
[UTF-16] encoded Unicode [UNICODE] without BOM. Terminated with $00 00.
$03 UTF-8 [UTF-8] encoded Unicode
[UNICODE]. Terminated with $00.
public void setTimeStampFormat(byte tsf)
$01 Absolute time, 32 bit sized, using MPEG frames as unit
$02 Absolute time, 32 bit sized, using
milliseconds as unit
tsf
- the new default time stamp formatpublic byte getTimeStampFormat()
$01 Absolute time, 32 bit sized, using MPEG frames as unit
$02 Absolute time, 32 bit sized, using
milliseconds as unit
public void setToDefault()
public java.util.Iterator getUpperLowerCaseWordListIterator()
public void addEndWordDelimiter(java.lang.String wordDelimiter)
public void addFilenameDelimiter(java.lang.String delimiter)
public void addKeyword(java.lang.Class id3v2FrameBodyClass, java.lang.String keyword) throws TagException
TagException
public void addParenthesis(java.lang.String open, java.lang.String close)
public void addReplaceWord(java.lang.String oldWord, java.lang.String newWord)
public void addStartWordDelimiter(java.lang.String wordDelimiter)
public void addUpperLowerCaseWord(java.lang.String word)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |