|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.render.afp.tools.BinaryUtils
Library of utility useful conversion methods.
Constructor Summary | |
BinaryUtils()
|
Method Summary | |
static byte[] |
convert(int integer)
Convert an int into the corresponding byte array by encoding each two hexadecimal digits as a char. |
static byte[] |
convert(int integer,
int bufsize)
Convert an int into the corresponding byte array by encoding each two hexadecimal digits as a char. |
static byte[] |
convert(java.lang.String digits)
Convert a String of hexadecimal digits into the corresponding byte array by encoding each two hexadecimal digits as a byte. |
static byte[] |
shortToByteArray(short value)
Convert the specified short into a byte array. |
static void |
shortToByteArray(short value,
byte[] array,
int offset)
Convert the specified short into a byte array. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BinaryUtils()
Method Detail |
public static byte[] convert(int integer, int bufsize)
integer
- The int representation.bufsize
- The required byte array size.public static byte[] convert(int integer)
integer
- The int representationpublic static byte[] convert(java.lang.String digits)
digits
- The hexadecimal digits representation.public static void shortToByteArray(short value, byte[] array, int offset)
value
- The value to be converted.array
- The array to receive the data.offset
- The offset into the byte array for the start of the value.public static byte[] shortToByteArray(short value)
value
- The value to be converted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |