|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.beep4j.internal.util.ByteUtil
public final class ByteUtil
Utility class for parsing stuff.
Method Summary | |
---|---|
static java.lang.String |
base64Encode(byte[] data)
|
static int |
parseUnsignedInt(java.lang.String field,
java.lang.String s)
Parses a String field that must be in the range 0..2147483647. |
static long |
parseUnsignedLong(java.lang.String field,
java.lang.String s)
Parses a String field that must be in the range 0..4294967295. |
static byte[] |
toASCII(java.lang.String s)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final byte[] toASCII(java.lang.String s)
public static final java.lang.String base64Encode(byte[] data)
public static final int parseUnsignedInt(java.lang.String field, java.lang.String s)
field
- the name of the fields
- the String to parse
ProtocolException
- if the parsed value does not conform to the
expected format and rangepublic static final long parseUnsignedLong(java.lang.String field, java.lang.String s)
field
- the name of the fields
- the String to parse
ProtocolException
- if the parsed value does not conform to the
expected format and range
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |