|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.asdf.utils.ByteUtils
public class ByteUtils
| Constructor Summary | |
|---|---|
ByteUtils()
|
|
| Method Summary | |
|---|---|
static java.nio.ByteBuffer[] |
brokeToPieces(byte[] data,
int chunkSize)
Returns given data chopped to BYTE_CHUNK_SIZE sized ByteBuffer pieces. |
static int |
bytesToInt(byte[] data)
Converts byte array to java integer. |
static byte[] |
intToBytes(int integer)
Converts int to byte array. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ByteUtils()
| Method Detail |
|---|
public static java.nio.ByteBuffer[] brokeToPieces(byte[] data,
int chunkSize)
data - to chop
public static int bytesToInt(byte[] data)
throws java.io.IOException
data - Byte array
java.io.IOException
public static byte[] intToBytes(int integer)
throws java.io.IOException
integer - Integer to convert
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||