@ThreadSafe public final class ByteArray extends Object
Modifier and Type | Method and Description |
---|---|
static short |
readShort(byte first,
byte second)
Reads a short from two bytes in big endian order
|
static byte |
writeFirst(short s)
Writes the first end of the short of the byte array
|
static byte |
writeSecond(short s)
Writes the second end of the short to a byte array
|
public static byte writeSecond(short s)
s
- the short to writepublic static byte writeFirst(short s)
s
- the short to writepublic static short readShort(byte first, byte second)
first
- the first bytesecond
- the second byteCopyright © 2016. All rights reserved.