|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javaFlacEncoder.UTF8Modified
public class UTF8Modified
This is a utility class that provides methods to both encode to and decode from the extended version of UTF8 used by the FLAC format. All functions should work with standard UTF8 as well, since this only extends it to handle larger input values.
Field Summary | |
---|---|
static int |
DEBUG_LEV
For debugging: Higher value equals more output, generally by increments of 10 |
Constructor Summary | |
---|---|
UTF8Modified()
Constructor. |
Method Summary | |
---|---|
static byte[] |
convertToExtendedUTF8(long value)
Convert a value to an extended UTF8 format(as used in FLAC). |
static long |
decodeFromExtendedUTF8(byte[] input)
Decode an extended UTF8(as used in FLAC), to a long value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int DEBUG_LEV
Constructor Detail |
---|
public UTF8Modified()
Method Detail |
---|
public static long decodeFromExtendedUTF8(byte[] input)
input
- extended UTF8 encoded value.
public static byte[] convertToExtendedUTF8(long value)
value
- value to convert to extended UTF8(value must be positive
and 36 bits or less in size)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |