|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.axelwernicke.mypod.ipod.ITunesDBParser
Represents an iTunes Database, which contains clip and playlist information.
Constructor Summary | |
ITunesDBParser()
Creates a new instance of a parser |
|
ITunesDBParser(ITunesDB _db)
Creates a new instance of ITunesDB |
Method Summary | |
static long |
dateToMacDate(long javaDate)
Converts a java date as long to a mac date as long mac date is seconds since 01/01/1904 java date is milliseconds since 01/01/1970 |
static long |
macDateToDate(long macDate)
Converts a date as long from iPod to a java date as long mac date is seconds since 01/01/1904 java date is milliseconds since 01/01/1970 |
static byte[] |
stringToUTF16LittleEndian(java.lang.String value)
Converts a java String to an UTF16 little endianed byte array |
static java.lang.String |
uTF16LittleEndianToString(byte[] value)
Converts a little endianed UTF16 byte array into a java string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ITunesDBParser()
public ITunesDBParser(ITunesDB _db)
_db
- database to create a parser forMethod Detail |
public static java.lang.String uTF16LittleEndianToString(byte[] value)
value
- byte array to decode
public static byte[] stringToUTF16LittleEndian(java.lang.String value)
value
- string to convert
public static long macDateToDate(long macDate)
mac date is seconds since 01/01/1904 java date is milliseconds since 01/01/1970
macDate
- date on iPod
public static long dateToMacDate(long javaDate)
mac date is seconds since 01/01/1904 java date is milliseconds since 01/01/1970
javaDate
- date in java format
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |