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