|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.blinkenlights.jid3.util.ID3Util
Constructor Summary | |
ID3Util()
|
Method Summary | |
static void |
compare(java.lang.String sFileOne,
java.lang.String sFileTwo)
Compare two files. |
static void |
compareFilePrefix(java.io.File oFile,
byte[] abyExpected)
Compare the starting bytes of a file against a given byte array. |
static java.lang.String |
convertBytesToHexString(byte[] abyRawBytes,
boolean bIncludeColons)
A utility method which, given an array of bytes, will return a character string containing the hex values of the bytes, optionally separated by colons (ie. 2F:01:A9:3C:etc.), which may be useful in debugging output or elsewhere. |
static byte[] |
convertFrhedToByteArray(java.lang.String sInput)
Convert a clipboard buffer copied from the frhed hex editor, to an array of bytes. |
static void |
copy(java.lang.String sSource,
java.lang.String sDestination)
Copy a file. |
static byte[] |
deunsynchronize(byte[] abySource)
De-unsynchronize an array of bytes. |
static java.lang.String |
getLicense()
Get the license for this library. |
static java.lang.String |
getVersion()
Get the version of this library. |
static void |
main(java.lang.String[] args)
|
static void |
printTags(ID3Tag[] aoID3Tag)
Utility method to report all tags found by printing them to stdout. |
static boolean |
requiresUnsynchronization(byte[] abySource)
Check if a byte array will require unsynchronization before being written as a tag. |
static byte[] |
unsynchronize(byte[] abySource)
Unsynchronize an array of bytes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ID3Util()
Method Detail |
public static java.lang.String getVersion()
public static java.lang.String getLicense()
public static void main(java.lang.String[] args)
public static void printTags(ID3Tag[] aoID3Tag) throws java.lang.Exception
aoID3Tag
- an array of ID3Tag objects
java.lang.Exception
public static boolean requiresUnsynchronization(byte[] abySource)
abySource
- the byte array to be examined
public static byte[] unsynchronize(byte[] abySource)
abySource
- a byte array to be unsynchronized
public static byte[] deunsynchronize(byte[] abySource)
abySource
- a byte array to be unencoded
public static java.lang.String convertBytesToHexString(byte[] abyRawBytes, boolean bIncludeColons)
abyRawBytes
- the byte array to be convertedbIncludeColons
- whether to include colons in output string or not
public static void copy(java.lang.String sSource, java.lang.String sDestination) throws java.lang.Exception
sSource
- source filenamesDestination
- destination filename
java.lang.Exception
public static void compare(java.lang.String sFileOne, java.lang.String sFileTwo) throws java.lang.Exception
sFileOne
- filenamesFileTwo
- filename
java.lang.Exception
public static byte[] convertFrhedToByteArray(java.lang.String sInput) throws java.lang.Exception
sInput
- the content of the clipboard buffer (in frhed format)
java.lang.Exception
- if there is either an error parsing the input stringpublic static void compareFilePrefix(java.io.File oFile, byte[] abyExpected) throws java.lang.Exception
oFile
- the file to verifyabyExpected
- an array of bytes which are expected to start the specified file
java.lang.Exception
- if the contents do not match
java.io.IOException
- if there was an error reading the file
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |