|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.components.midi.xmidi.Utils
public final class Utils
Field Summary | |
---|---|
static String |
VERSION
|
Constructor Summary | |
---|---|
Utils()
|
Method Summary | |
---|---|
static String |
baToHex(byte[] b,
int strt,
int end)
convert byte array to hex string |
static int |
baToInt(byte[] b,
int strt,
int end)
convert byte array to int |
static String |
baToString(byte[] b,
int strt,
int end)
convert byte array to string (not hex) |
static ByteLen |
deltaToInt(byte[] b,
int offset)
convert delta time to byte array a delta time is expressed as a byte array, length unknown (4 or less) |
static int |
getNextHiOrd(byte[] dta,
int offset)
|
static int |
getPW(byte[] dta,
int offset)
|
static int |
getUnsignedByte(byte b)
convert byte (unsigned) to int |
static byte[] |
hexToBa(String h,
int len)
convert hex string to byte array |
static byte[] |
intToBa(int n,
int c)
convert int to byte array of length c |
static byte[] |
intToDelta(byte[] t)
convert byte array to delta time a delta time is expressed as a byte array, length unknown (4 or less) |
static int |
pow(int b,
int e)
compute b to the e power (b ** e) |
static int |
stringToInt(String s)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String VERSION
Constructor Detail |
---|
public Utils()
Method Detail |
---|
public static byte[] hexToBa(String h, int len) throws ProcessingException
ProcessingException
public static String baToString(byte[] b, int strt, int end)
public static String baToHex(byte[] b, int strt, int end) throws ProcessingException
ProcessingException
public static byte[] intToBa(int n, int c) throws ProcessingException
ProcessingException
public static int baToInt(byte[] b, int strt, int end) throws ProcessingException
ProcessingException
public static int getUnsignedByte(byte b)
public static ByteLen deltaToInt(byte[] b, int offset) throws ProcessingException
ProcessingException
public static int pow(int b, int e)
public static int getPW(byte[] dta, int offset) throws ProcessingException
ProcessingException
public static int getNextHiOrd(byte[] dta, int offset) throws ProcessingException
ProcessingException
public static byte[] intToDelta(byte[] t) throws ProcessingException
ProcessingException
public static int stringToInt(String s)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |