public class BinaryUtil extends Object
| Constructor and Description |
|---|
BinaryUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
readString(ByteBuffer data) |
static int |
readUnsignedByte(ByteBuffer input) |
static int |
readUnsignedShort(ByteBuffer input) |
static void |
writeString(DataOutputStream data,
String value) |
static void |
writeUnsignedByte(DataOutputStream data,
int value) |
static void |
writeUnsignedShort(DataOutputStream data,
int value) |
public static int readUnsignedByte(ByteBuffer input)
public static int readUnsignedShort(ByteBuffer input)
public static void writeUnsignedByte(DataOutputStream data, int value) throws IOException
IOExceptionpublic static void writeUnsignedShort(DataOutputStream data, int value) throws IOException
IOExceptionpublic static void writeString(DataOutputStream data, String value) throws IOException
IOExceptionpublic static String readString(ByteBuffer data)
Copyright © 2019. All rights reserved.