|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.fernsroth.easyio.util.EasyIOUtils
public final class EasyIOUtils
utilities for working with EasyRW.
Method Summary | |
---|---|
static int |
getClassSize(java.lang.Class<?> clazz)
gets the number of bytes the class will take up. |
static java.lang.Object |
mask(java.lang.Object val,
int bits)
masks an object(number) by x number of bits. |
static java.lang.Object |
or(java.lang.Object val1,
java.lang.Object val2)
or to objects(numbers) together. |
static java.lang.Object |
shift(java.lang.Object val,
int bits)
shift the object (number) by bits. |
static java.lang.String |
toHexString(long value,
int length)
converts a number to a hex string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String toHexString(long value, int length)
value
- the value to convert.length
- the length to output.
public static int getClassSize(java.lang.Class<?> clazz) throws EasyIOException, java.io.IOException
clazz
- the class.
EasyIOException
java.io.IOException
public static java.lang.Object shift(java.lang.Object val, int bits)
val
- the value to shift.bits
- the number of bits to shift.
public static java.lang.Object mask(java.lang.Object val, int bits)
val
- the value to mask.bits
- the number of bits to mask.
public static java.lang.Object or(java.lang.Object val1, java.lang.Object val2)
val1
- the first value.val2
- the second value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |