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
IOException
public static String readString(DataInputStream is) throws IOException
IOException
public static void writeStringList(List<String> list, DataOutputStream os) throws IOException
IOException
public static List<String> readStringList(DataInputStream is) throws IOException
IOException
public static void writeByteBuffer(ByteBuffer buf, DataOutputStream os) throws IOException
IOException
public static ByteBuffer readByteBuffer(DataInputStream is) throws IOException
IOException
public static void writeByteBufferList(List<ByteBuffer> list, DataOutputStream os) throws IOException
IOException
public static List<ByteBuffer> readByteBufferList(DataInputStream is) throws IOException
IOException
public static List<Integer> readIntegerList(DataInputStream is) throws IOException
IOException
public static void writeIntegerList(List<Integer> list, DataOutputStream os) throws IOException
IOException
Copyright © 2014. All rights reserved.