public class DefaultPortableWriter extends Object implements PortableWriter
| Constructor and Description |
|---|
DefaultPortableWriter(com.hazelcast.nio.serialization.PortableSerializer serializer,
com.hazelcast.nio.BufferObjectDataOutput out,
ClassDefinition cd) |
| Modifier and Type | Method and Description |
|---|---|
com.hazelcast.nio.ObjectDataOutput |
getRawDataOutput() |
int |
getVersion() |
void |
writeBoolean(String fieldName,
boolean value) |
void |
writeByte(String fieldName,
byte value) |
void |
writeByteArray(String fieldName,
byte[] values) |
void |
writeChar(String fieldName,
int value) |
void |
writeCharArray(String fieldName,
char[] values) |
void |
writeDouble(String fieldName,
double value) |
void |
writeDoubleArray(String fieldName,
double[] values) |
void |
writeFloat(String fieldName,
float value) |
void |
writeFloatArray(String fieldName,
float[] values) |
void |
writeInt(String fieldName,
int value) |
void |
writeIntArray(String fieldName,
int[] values) |
void |
writeLong(String fieldName,
long value) |
void |
writeLongArray(String fieldName,
long[] values) |
void |
writeNullPortable(String fieldName,
int factoryId,
int classId) |
void |
writePortable(String fieldName,
Portable portable) |
void |
writePortableArray(String fieldName,
Portable[] portables) |
void |
writeShort(String fieldName,
short value) |
void |
writeShortArray(String fieldName,
short[] values) |
void |
writeUTF(String fieldName,
String str) |
public DefaultPortableWriter(com.hazelcast.nio.serialization.PortableSerializer serializer,
com.hazelcast.nio.BufferObjectDataOutput out,
ClassDefinition cd)
throws IOException
IOExceptionpublic int getVersion()
public void writeInt(String fieldName, int value) throws IOException
writeInt in interface PortableWriterIOExceptionpublic void writeLong(String fieldName, long value) throws IOException
writeLong in interface PortableWriterIOExceptionpublic void writeUTF(String fieldName, String str) throws IOException
writeUTF in interface PortableWriterIOExceptionpublic void writeBoolean(String fieldName, boolean value) throws IOException
writeBoolean in interface PortableWriterIOExceptionpublic void writeByte(String fieldName, byte value) throws IOException
writeByte in interface PortableWriterIOExceptionpublic void writeChar(String fieldName, int value) throws IOException
writeChar in interface PortableWriterIOExceptionpublic void writeDouble(String fieldName, double value) throws IOException
writeDouble in interface PortableWriterIOExceptionpublic void writeFloat(String fieldName, float value) throws IOException
writeFloat in interface PortableWriterIOExceptionpublic void writeShort(String fieldName, short value) throws IOException
writeShort in interface PortableWriterIOExceptionpublic void writePortable(String fieldName, Portable portable) throws IOException
writePortable in interface PortableWriterIOExceptionpublic void writeNullPortable(String fieldName, int factoryId, int classId) throws IOException
writeNullPortable in interface PortableWriterIOExceptionpublic void writeByteArray(String fieldName, byte[] values) throws IOException
writeByteArray in interface PortableWriterIOExceptionpublic void writeCharArray(String fieldName, char[] values) throws IOException
writeCharArray in interface PortableWriterIOExceptionpublic void writeIntArray(String fieldName, int[] values) throws IOException
writeIntArray in interface PortableWriterIOExceptionpublic void writeLongArray(String fieldName, long[] values) throws IOException
writeLongArray in interface PortableWriterIOExceptionpublic void writeDoubleArray(String fieldName, double[] values) throws IOException
writeDoubleArray in interface PortableWriterIOExceptionpublic void writeFloatArray(String fieldName, float[] values) throws IOException
writeFloatArray in interface PortableWriterIOExceptionpublic void writeShortArray(String fieldName, short[] values) throws IOException
writeShortArray in interface PortableWriterIOExceptionpublic void writePortableArray(String fieldName, Portable[] portables) throws IOException
writePortableArray in interface PortableWriterIOExceptionpublic com.hazelcast.nio.ObjectDataOutput getRawDataOutput()
throws IOException
getRawDataOutput in interface PortableWriterIOExceptionCopyright © 2014 Hazelcast, Inc.. All Rights Reserved.