|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jsmpp.util.OctetUtil
public class OctetUtil
The octet util.
Constructor Summary | |
---|---|
OctetUtil()
|
Method Summary | |
---|---|
static int |
bytesToInt(byte[] bytes)
32 bit. |
static int |
bytesToInt(byte[] bytes,
int offset)
32 bit. |
static short |
bytesToShort(byte[] bytes)
16 bit. |
static short |
bytesToShort(byte[] bytes,
int offset)
16 bit. |
static byte[] |
intToBytes(int value)
Convert integer (4 octets) value to bytes. |
static byte[] |
shortToBytes(short value)
Convert integer (2 octets) value to bytes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OctetUtil()
Method Detail |
---|
public static byte[] intToBytes(int value)
value
- as 4 bytes representing integer in bytes.
public static byte[] shortToBytes(short value)
value
-
public static int bytesToInt(byte[] bytes)
bytes
-
public static int bytesToInt(byte[] bytes, int offset)
bytes
- offset
-
public static short bytesToShort(byte[] bytes)
bytes
-
public static short bytesToShort(byte[] bytes, int offset)
bytes
- offset
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |