|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jaudiotagger.tag.id3.ID3Tags
public class ID3Tags
This contains static methods that can be performed on tags and to convert between tags.
Field Summary | |
---|---|
static java.util.logging.Logger |
logger
|
Constructor Summary | |
---|---|
private |
ID3Tags()
|
Method Summary | |
---|---|
static java.lang.String |
convertFrameID22To23(java.lang.String identifier)
Convert from ID3v22 FrameIdentifier to ID3v23 |
static java.lang.String |
convertFrameID22To24(java.lang.String identifier)
Convert from ID3v22 FrameIdentifier to ID3v24 |
static java.lang.String |
convertFrameID23To22(java.lang.String identifier)
Convert from ID3v23 FrameIdentifier to ID3v22 |
static java.lang.String |
convertFrameID23To24(java.lang.String identifier)
Convert from ID3v23 FrameIdentifier to ID3v24 |
static java.lang.String |
convertFrameID24To23(java.lang.String identifier)
Convert from ID3v24 FrameIdentifier to ID3v23 |
static java.lang.Object |
copyObject(java.lang.Object copyObject)
Unable to instantiate abstract classes, so can't call the copy constructor. |
static long |
findNumber(java.lang.String str)
Find the first whole number that can be parsed from the string |
static long |
findNumber(java.lang.String str,
int offset)
Find the first whole number that can be parsed from the string |
static java.lang.String |
forceFrameID22To23(java.lang.String identifier)
Force from ID3v22 FrameIdentifier to ID3v23, this is where the frame and structure has changed from v2 to v3 but we can still do some kind of conversion. |
static java.lang.String |
forceFrameID23To22(java.lang.String identifier)
Force from ID3v22 FrameIdentifier to ID3v23, this is where the frame and structure has changed from v2 to v3 but we can still do some kind of conversion. |
static java.lang.String |
forceFrameID23To24(java.lang.String identifier)
Force from ID3v2.30 FrameIdentifier to ID3v2.40, this is where the frame and structure has changed from v3 to v4 but we can still do some kind of conversion. |
static java.lang.String |
forceFrameID24To23(java.lang.String identifier)
Force from ID3v2.40 FrameIdentifier to ID3v2.30, this is where the frame and structure has changed between v4 to v3 but we can still do some kind of conversion. |
static long |
getWholeNumber(java.lang.Object value)
Given an datatype, try to return it as a long . |
static boolean |
isID3v22FrameIdentifier(java.lang.String identifier)
Returns true if the identifier is a valid ID3v2.2 frame identifier |
static boolean |
isID3v23FrameIdentifier(java.lang.String identifier)
Returns true if the identifier is a valid ID3v2.3 frame identifier |
static boolean |
isID3v24FrameIdentifier(java.lang.String identifier)
Returns true if the identifier is a valid ID3v2.4 frame identifier |
static java.lang.String |
stripChar(java.lang.String str,
char ch)
Remove all occurances of the given character from the string argument. |
static java.lang.String |
truncate(java.lang.String str,
int len)
truncate a string if it longer than the argument |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.util.logging.Logger logger
Constructor Detail |
---|
private ID3Tags()
Method Detail |
---|
public static boolean isID3v22FrameIdentifier(java.lang.String identifier)
identifier
- string to test
public static boolean isID3v23FrameIdentifier(java.lang.String identifier)
identifier
- string to test
public static boolean isID3v24FrameIdentifier(java.lang.String identifier)
identifier
- string to test
public static long getWholeNumber(java.lang.Object value)
long
. This tries to
parse a string, and takes Long, Short, Byte, Integer
objects and gets their value. An exception is not explicitly thrown
here because it would causes too many other methods to also throw it.
value
- datatype to find long from.
long
value
java.lang.IllegalArgumentException
public static java.lang.String convertFrameID22To23(java.lang.String identifier)
identifier
-
public static java.lang.String convertFrameID22To24(java.lang.String identifier)
identifier
-
public static java.lang.String convertFrameID23To22(java.lang.String identifier)
identifier
-
public static java.lang.String convertFrameID23To24(java.lang.String identifier)
identifier
-
public static java.lang.String forceFrameID22To23(java.lang.String identifier)
identifier
-
public static java.lang.String forceFrameID23To22(java.lang.String identifier)
identifier
-
public static java.lang.String forceFrameID23To24(java.lang.String identifier)
identifier
-
public static java.lang.String forceFrameID24To23(java.lang.String identifier)
identifier
-
public static java.lang.String convertFrameID24To23(java.lang.String identifier)
identifier
-
public static java.lang.Object copyObject(java.lang.Object copyObject)
copyObject
-
java.lang.IllegalArgumentException
- if no suitable constructor existspublic static long findNumber(java.lang.String str) throws TagException
str
- string to search
TagException
public static long findNumber(java.lang.String str, int offset) throws TagException
str
- string to searchoffset
- start seaching from this index
TagException
java.lang.NullPointerException
java.lang.IndexOutOfBoundsException
public static java.lang.String stripChar(java.lang.String str, char ch)
str
- String to searchch
- character to remove
public static java.lang.String truncate(java.lang.String str, int len)
str
- String to truncatelen
- maximum desired length of new string
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |