public class SerializerUtils extends Object
| Constructor and Description |
|---|
SerializerUtils() |
public <T extends OutputStream> void writeString(T out, String name) throws IOException
IOExceptionpublic void writeString(com.google.common.io.OutputSupplier<? extends OutputStream> supplier, String name) throws IOException
IOExceptionpublic void writeString(WritableByteChannel out, String name) throws IOException
IOExceptionpublic String readString(InputStream in) throws IOException
IOExceptionpublic String readString(ByteBuffer in) throws IOException
IOExceptionpublic void writeStrings(OutputStream out, String[] names) throws IOException
IOExceptionpublic void writeStrings(OutputStream out, List<String> names) throws IOException
IOExceptionpublic String[] readStrings(InputStream in) throws IOException
IOExceptionpublic String[] readStrings(ByteBuffer in) throws IOException
IOExceptionpublic void writeInt(OutputStream out, int intValue) throws IOException
IOExceptionpublic void writeInt(WritableByteChannel out, int intValue) throws IOException
IOExceptionpublic int readInt(InputStream in) throws IOException
IOExceptionpublic void writeInts(OutputStream out, int[] ints) throws IOException
IOExceptionpublic void writeInts(OutputStream out, IntList ints) throws IOException
IOExceptionpublic int[] readInts(InputStream in) throws IOException
IOExceptionpublic void writeLong(OutputStream out, long longValue) throws IOException
IOExceptionpublic void writeLong(WritableByteChannel out, long longValue) throws IOException
IOExceptionpublic long readLong(InputStream in) throws IOException
IOExceptionpublic void writeLongs(OutputStream out, long[] longs) throws IOException
IOExceptionpublic long[] readLongs(InputStream in) throws IOException
IOExceptionpublic void writeFloat(OutputStream out, float intValue) throws IOException
IOExceptionpublic void writeFloat(WritableByteChannel out, float floatValue) throws IOException
IOExceptionpublic float readFloat(InputStream in) throws IOException
IOExceptionpublic void writeFloats(OutputStream out, float[] floats) throws IOException
IOExceptionpublic float[] readFloats(InputStream in) throws IOException
IOExceptionpublic int getSerializedStringByteSize(String str)
Copyright © 2011–2015. All rights reserved.