public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static ByteBuffer |
readByteBuffer(DataInputStream is) |
static List<ByteBuffer> |
readByteBufferList(DataInputStream is) |
static List<Integer> |
readIntegerList(DataInputStream is) |
static String |
readString(DataInputStream is) |
static List<String> |
readStringList(DataInputStream is) |
static void |
writeByteBuffer(ByteBuffer buf,
DataOutputStream os) |
static void |
writeByteBufferList(List<ByteBuffer> list,
DataOutputStream os) |
static void |
writeIntegerList(List<Integer> list,
DataOutputStream os) |
static void |
writeString(String str,
DataOutputStream os) |
static void |
writeStringList(List<String> list,
DataOutputStream os) |
public static void writeString(String str, DataOutputStream os) throws IOException
IOExceptionpublic static String readString(DataInputStream is) throws IOException
IOExceptionpublic static void writeStringList(List<String> list, DataOutputStream os) throws IOException
IOExceptionpublic static List<String> readStringList(DataInputStream is) throws IOException
IOExceptionpublic static void writeByteBuffer(ByteBuffer buf, DataOutputStream os) throws IOException
IOExceptionpublic static ByteBuffer readByteBuffer(DataInputStream is) throws IOException
IOExceptionpublic static void writeByteBufferList(List<ByteBuffer> list, DataOutputStream os) throws IOException
IOExceptionpublic static List<ByteBuffer> readByteBufferList(DataInputStream is) throws IOException
IOExceptionpublic static List<Integer> readIntegerList(DataInputStream is) throws IOException
IOExceptionpublic static void writeIntegerList(List<Integer> list, DataOutputStream os) throws IOException
IOExceptionCopyright © 2014. All rights reserved.