public class ID3Tags
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.logging.Logger |
logger |
Modifier | Constructor and Description |
---|---|
private |
ID3Tags() |
Modifier and Type | Method and Description |
---|---|
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
|
public static boolean isID3v22FrameIdentifier(java.lang.String identifier)
identifier
- string to testpublic static boolean isID3v23FrameIdentifier(java.lang.String identifier)
identifier
- string to testpublic static boolean isID3v24FrameIdentifier(java.lang.String identifier)
identifier
- string to testpublic 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
valuejava.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 searchTagException
public static long findNumber(java.lang.String str, int offset) throws TagException
str
- string to searchoffset
- start seaching from this indexTagException
java.lang.NullPointerException
java.lang.IndexOutOfBoundsException
public static java.lang.String stripChar(java.lang.String str, char ch)
str
- String to searchch
- character to removepublic static java.lang.String truncate(java.lang.String str, int len)
str
- String to truncatelen
- maximum desired length of new stringCopyright © 2005-2013 java.net. All Rights Reserved.