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 writtenIOExceptionvoid writeLong(String fieldName, long value) throws IOException
fieldName - name of the fieldvalue - long value to be writtenIOExceptionvoid writeUTF(String fieldName, String value) throws IOException
fieldName - name of the fieldvalue - utf string value to be writtenIOExceptionvoid writeBoolean(String fieldName, boolean value) throws IOException
fieldName - name of the fieldvalue - int value to be writtenIOExceptionvoid writeByte(String fieldName, byte value) throws IOException
fieldName - name of the fieldvalue - int value to be writtenIOExceptionvoid writeChar(String fieldName, int value) throws IOException
fieldName - name of the fieldvalue - int value to be writtenIOExceptionvoid writeDouble(String fieldName, double value) throws IOException
fieldName - name of the fieldvalue - int value to be writtenIOExceptionvoid writeFloat(String fieldName, float value) throws IOException
fieldName - name of the fieldvalue - int value to be writtenIOExceptionvoid writeShort(String fieldName, short value) throws IOException
fieldName - name of the fieldvalue - int value to be writtenIOExceptionvoid writePortable(String fieldName, Portable portable) throws IOException
fieldName - name of the fieldportable - Portable to be writtenIOExceptionvoid 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 classIOExceptionvoid writeByteArray(String fieldName, byte[] bytes) throws IOException
fieldName - name of the fieldbytes - byte array to be writtenIOExceptionvoid writeBooleanArray(String fieldName, boolean[] booleans) throws IOException
fieldName - name of the fieldbooleans - boolean array to be writtenIOExceptionvoid writeCharArray(String fieldName, char[] chars) throws IOException
fieldName - name of the fieldchars - char array to be writtenIOExceptionvoid writeIntArray(String fieldName, int[] ints) throws IOException
fieldName - name of the fieldints - int array to be writtenIOExceptionvoid writeLongArray(String fieldName, long[] longs) throws IOException
fieldName - name of the fieldlongs - long array to be writtenIOExceptionvoid writeDoubleArray(String fieldName, double[] values) throws IOException
fieldName - name of the fieldvalues - double array to be writtenIOExceptionvoid writeFloatArray(String fieldName, float[] values) throws IOException
fieldName - name of the fieldvalues - float array to be writtenIOExceptionvoid writeShortArray(String fieldName, short[] values) throws IOException
fieldName - name of the fieldvalues - short array to be writtenIOExceptionvoid writeUTFArray(String fieldName, String[] values) throws IOException
fieldName - name of the fieldvalues - String array to be writtenIOExceptionvoid writePortableArray(String fieldName, Portable[] portables) throws IOException
fieldName - name of the fieldportables - portable array to be writtenIOExceptionObjectDataOutput getRawDataOutput() throws IOException
IOExceptionCopyright © 2017 Hazelcast, Inc.. All Rights Reserved.