| java.lang.Object org.apache.cocoon.components.midi.xmidi.Utils
Utils | final public class Utils (Code) | | |
Method Summary | |
public static String | baToHex(byte[] b, int strt, int end) | public static int | baToInt(byte[] b, int strt, int end) | public static String | baToString(byte[] b, int strt, int end) | public static ByteLen | deltaToInt(byte[] b, int offset) | public static int | getNextHiOrd(byte[] dta, int offset) | public static int | getPW(byte[] dta, int offset) | public static int | getUnsignedByte(byte b) | public static byte[] | hexToBa(String h, int len) | public static byte[] | intToBa(int n, int c) | public static byte[] | intToDelta(byte[] t) | public static int | pow(int b, int e) | public static int | stringToInt(String s) |
baToString | public static String baToString(byte[] b, int strt, int end)(Code) | | convert byte array to string (not hex)
|
deltaToInt | public static ByteLen deltaToInt(byte[] b, int offset) throws ProcessingException(Code) | | convert delta time to byte array
a delta time is expressed as a
byte array, length unknown (4 or less)
|
getUnsignedByte | public static int getUnsignedByte(byte b)(Code) | | convert byte (unsigned) to int
|
intToDelta | public static byte[] intToDelta(byte[] t) throws ProcessingException(Code) | | convert byte array to delta time
a delta time is expressed as a
byte array, length unknown (4 or less)
|
pow | public static int pow(int b, int e)(Code) | | compute b to the e power (b ** e)
|
|
|