public class ID3Tags extends Object
Modifier and Type | Method and Description |
---|---|
static String |
convertFrameID22To23(String identifier)
Convert from ID3v22 FrameIdentifier to ID3v23
|
static String |
convertFrameID22To24(String identifier)
Convert from ID3v22 FrameIdentifier to ID3v24
|
static String |
convertFrameID23To22(String identifier)
Convert from ID3v23 FrameIdentifier to ID3v22
|
static String |
convertFrameID23To24(String identifier)
Convert from ID3v23 FrameIdentifier to ID3v24
|
static String |
convertFrameID24To23(String identifier)
Convert from ID3v24 FrameIdentifier to ID3v23
|
static Object |
copyObject(Object copyObject)
Unable to instantiate abstract classes, so can't call the copy
constructor.
|
static long |
findNumber(String str)
Find the first whole number that can be parsed from the string
|
static long |
findNumber(String str,
int offset)
Find the first whole number that can be parsed from the string
|
static String |
forceFrameID22To23(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 String |
forceFrameID23To22(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 String |
forceFrameID23To24(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 String |
forceFrameID24To23(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(Object value)
Given an datatype, try to return it as a
long . |
static boolean |
isID3v22FrameIdentifier(String identifier)
Returns true if the identifier is a valid ID3v2.2 frame identifier
|
static boolean |
isID3v23FrameIdentifier(String identifier)
Returns true if the identifier is a valid ID3v2.3 frame identifier
|
static boolean |
isID3v24FrameIdentifier(String identifier)
Returns true if the identifier is a valid ID3v2.4 frame identifier
|
static String |
stripChar(String str,
char ch)
Remove all occurances of the given character from the string argument.
|
static String |
truncate(String str,
int len)
truncate a string if it longer than the argument
|
public static Logger logger
public static boolean isID3v22FrameIdentifier(String identifier)
identifier
- string to testpublic static boolean isID3v23FrameIdentifier(String identifier)
identifier
- string to testpublic static boolean isID3v24FrameIdentifier(String identifier)
identifier
- string to testpublic static long getWholeNumber(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
valueIllegalArgumentException
public static String convertFrameID22To23(String identifier)
identifier
- public static String convertFrameID22To24(String identifier)
identifier
- public static String convertFrameID23To22(String identifier)
identifier
- public static String convertFrameID23To24(String identifier)
identifier
- public static String forceFrameID22To23(String identifier)
identifier
- public static String forceFrameID23To22(String identifier)
identifier
- public static String forceFrameID23To24(String identifier)
identifier
- public static String forceFrameID24To23(String identifier)
identifier
- public static String convertFrameID24To23(String identifier)
identifier
- public static Object copyObject(Object copyObject)
copyObject
- IllegalArgumentException
- if no suitable constructor existspublic static long findNumber(String str) throws TagException
str
- string to searchTagException
public static long findNumber(String str, int offset) throws TagException
str
- string to searchoffset
- start seaching from this indexTagException
NullPointerException
IndexOutOfBoundsException
public static String stripChar(String str, char ch)
str
- String to searchch
- character to removeCopyright © 2005–2020 jthink.net. All rights reserved.