public interface PortableWriter
Modifier and Type | Method and Description |
---|---|
ObjectDataOutput |
getRawDataOutput()
After writing portable fields one can subsequently write remaining fields in the old-fashioned way.
|
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
- in case of any exceptional casevoid writeLong(String fieldName, long value) throws IOException
fieldName
- name of the fieldvalue
- long value to be writtenIOException
- in case of any exceptional casevoid writeUTF(String fieldName, String value) throws IOException
fieldName
- name of the fieldvalue
- utf string value to be writtenIOException
- in case of any exceptional casevoid writeBoolean(String fieldName, boolean value) throws IOException
fieldName
- name of the fieldvalue
- int value to be writtenIOException
- in case of any exceptional casevoid writeByte(String fieldName, byte value) throws IOException
fieldName
- name of the fieldvalue
- int value to be writtenIOException
- in case of any exceptional casevoid writeChar(String fieldName, int value) throws IOException
fieldName
- name of the fieldvalue
- int value to be writtenIOException
- in case of any exceptional casevoid writeDouble(String fieldName, double value) throws IOException
fieldName
- name of the fieldvalue
- int value to be writtenIOException
- in case of any exceptional casevoid writeFloat(String fieldName, float value) throws IOException
fieldName
- name of the fieldvalue
- int value to be writtenIOException
- in case of any exceptional casevoid writeShort(String fieldName, short value) throws IOException
fieldName
- name of the fieldvalue
- int value to be writtenIOException
- in case of any exceptional casevoid writePortable(String fieldName, Portable portable) throws IOException
fieldName
- name of the fieldportable
- Portable to be writtenIOException
- in case of any exceptional casevoid 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
- in case of any exceptional casevoid writeByteArray(String fieldName, byte[] bytes) throws IOException
fieldName
- name of the fieldbytes
- byte array to be writtenIOException
- in case of any exceptional casevoid writeBooleanArray(String fieldName, boolean[] booleans) throws IOException
fieldName
- name of the fieldbooleans
- boolean array to be writtenIOException
- in case of any exceptional casevoid writeCharArray(String fieldName, char[] chars) throws IOException
fieldName
- name of the fieldchars
- char array to be writtenIOException
- in case of any exceptional casevoid writeIntArray(String fieldName, int[] ints) throws IOException
fieldName
- name of the fieldints
- int array to be writtenIOException
- in case of any exceptional casevoid writeLongArray(String fieldName, long[] longs) throws IOException
fieldName
- name of the fieldlongs
- long array to be writtenIOException
- in case of any exceptional casevoid writeDoubleArray(String fieldName, double[] values) throws IOException
fieldName
- name of the fieldvalues
- double array to be writtenIOException
- in case of any exceptional casevoid writeFloatArray(String fieldName, float[] values) throws IOException
fieldName
- name of the fieldvalues
- float array to be writtenIOException
- in case of any exceptional casevoid writeShortArray(String fieldName, short[] values) throws IOException
fieldName
- name of the fieldvalues
- short array to be writtenIOException
- in case of any exceptional casevoid writeUTFArray(String fieldName, String[] values) throws IOException
fieldName
- name of the fieldvalues
- String array to be writtenIOException
- in case of any exceptional casevoid writePortableArray(String fieldName, Portable[] portables) throws IOException
fieldName
- name of the fieldportables
- portable array to be writtenIOException
- in case of any exceptional caseObjectDataOutput getRawDataOutput() throws IOException
IOException
- in case of any exceptional caseCopyright © 2021 Hazelcast, Inc.. All rights reserved.