public interface PortableWriter
Modifier and Type | Method and Description |
---|---|
ObjectDataOutput |
getRawDataOutput()
After writing portable fields, one can write remaining fields in old fashioned way consecutively at the end
of stream.
|
void |
writeBoolean(String fieldName,
boolean value)
Writes a primitive boolean.
|
void |
writeBooleanArray(String fieldName,
boolean[] booleans)
Writes a primitive boolean-array.
|
void |
writeByte(String fieldName,
byte value)
Writes a primitive byte.
|
void |
writeByteArray(String fieldName,
byte[] bytes)
Writes a primitive byte-array.
|
void |
writeChar(String fieldName,
int value)
Writes a primitive char.
|
void |
writeCharArray(String fieldName,
char[] chars)
Writes a primitive char-array.
|
void |
writeDouble(String fieldName,
double value)
Writes a primitive double.
|
void |
writeDoubleArray(String fieldName,
double[] values)
Writes a primitive double array.
|
void |
writeFloat(String fieldName,
float value)
Writes a primitive float.
|
void |
writeFloatArray(String fieldName,
float[] values)
Writes a primitive float array.
|
void |
writeInt(String fieldName,
int value)
Writes a primitive int.
|
void |
writeIntArray(String fieldName,
int[] ints)
Writes a primitive int-array.
|
void |
writeLong(String fieldName,
long value)
Writes a primitive long.
|
void |
writeLongArray(String fieldName,
long[] longs)
Writes a primitive long-array.
|
void |
writeNullPortable(String fieldName,
int factoryId,
int classId)
To write a null portable value, user needs to provide class and factoryIds of related class.
|
void |
writePortable(String fieldName,
Portable portable)
Writes a Portable.
|
void |
writePortableArray(String fieldName,
Portable[] portables)
Writes a an array of Portables.
|
void |
writeShort(String fieldName,
short value)
Writes a primitive short.
|
void |
writeShortArray(String fieldName,
short[] values)
Writes a primitive short-array.
|
void |
writeUTF(String fieldName,
String value)
Writes an UTF string.
|
void |
writeUTFArray(String fieldName,
String[] values)
Writes a String-array.
|
void writeInt(String fieldName, int value) throws IOException
fieldName
- name of the fieldvalue
- int value to be writtenIOException
void writeLong(String fieldName, long value) throws IOException
fieldName
- name of the fieldvalue
- long value to be writtenIOException
void writeUTF(String fieldName, String value) throws IOException
fieldName
- name of the fieldvalue
- utf string value to be writtenIOException
void writeBoolean(String fieldName, boolean value) throws IOException
fieldName
- name of the fieldvalue
- int value to be writtenIOException
void writeByte(String fieldName, byte value) throws IOException
fieldName
- name of the fieldvalue
- int value to be writtenIOException
void writeChar(String fieldName, int value) throws IOException
fieldName
- name of the fieldvalue
- int value to be writtenIOException
void writeDouble(String fieldName, double value) throws IOException
fieldName
- name of the fieldvalue
- int value to be writtenIOException
void writeFloat(String fieldName, float value) throws IOException
fieldName
- name of the fieldvalue
- int value to be writtenIOException
void writeShort(String fieldName, short value) throws IOException
fieldName
- name of the fieldvalue
- int value to be writtenIOException
void writePortable(String fieldName, Portable portable) throws IOException
fieldName
- name of the fieldportable
- Portable to be writtenIOException
void writeNullPortable(String fieldName, int factoryId, int classId) throws IOException
fieldName
- name of the fieldfactoryId
- factory id of related portable classclassId
- class id of related portable classIOException
void writeByteArray(String fieldName, byte[] bytes) throws IOException
fieldName
- name of the fieldbytes
- byte array to be writtenIOException
void writeBooleanArray(String fieldName, boolean[] booleans) throws IOException
fieldName
- name of the fieldbooleans
- boolean array to be writtenIOException
void writeCharArray(String fieldName, char[] chars) throws IOException
fieldName
- name of the fieldchars
- char array to be writtenIOException
void writeIntArray(String fieldName, int[] ints) throws IOException
fieldName
- name of the fieldints
- int array to be writtenIOException
void writeLongArray(String fieldName, long[] longs) throws IOException
fieldName
- name of the fieldlongs
- long array to be writtenIOException
void writeDoubleArray(String fieldName, double[] values) throws IOException
fieldName
- name of the fieldvalues
- double array to be writtenIOException
void writeFloatArray(String fieldName, float[] values) throws IOException
fieldName
- name of the fieldvalues
- float array to be writtenIOException
void writeShortArray(String fieldName, short[] values) throws IOException
fieldName
- name of the fieldvalues
- short array to be writtenIOException
void writeUTFArray(String fieldName, String[] values) throws IOException
fieldName
- name of the fieldvalues
- String array to be writtenIOException
void writePortableArray(String fieldName, Portable[] portables) throws IOException
fieldName
- name of the fieldportables
- portable array to be writtenIOException
ObjectDataOutput getRawDataOutput() throws IOException
IOException
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.