public class SerializerUtils extends Object
Constructor and Description |
---|
SerializerUtils() |
Modifier and Type | Method and Description |
---|---|
int |
getSerializedStringByteSize(String str) |
byte[] |
readBytes(ByteBuffer in,
int length) |
String |
readString(ByteBuffer in) |
void |
writeFloat(OutputStream out,
float floatValue) |
static void |
writeInt(WritableByteChannel out,
int intValue) |
void |
writeLong(WritableByteChannel out,
long longValue) |
<T extends OutputStream> |
writeString(T out,
String name) |
void |
writeString(WritableByteChannel out,
String name) |
public <T extends OutputStream> void writeString(T out, String name) throws IOException
IOException
public void writeString(WritableByteChannel out, String name) throws IOException
IOException
public String readString(ByteBuffer in)
public byte[] readBytes(ByteBuffer in, int length)
public static void writeInt(WritableByteChannel out, int intValue) throws IOException
IOException
public void writeLong(WritableByteChannel out, long longValue) throws IOException
IOException
public void writeFloat(OutputStream out, float floatValue) throws IOException
IOException
public int getSerializedStringByteSize(String str)
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.