|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PortableWriter
Provides a mean of writing portable fields to a binary in form of java primitives arrays of java primitives , nested portable fields and array of portable fields.
| Method Summary | |
|---|---|
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 |
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. |
| Method Detail |
|---|
void writeInt(String fieldName,
int value)
throws IOException
fieldName - name of the fieldvalue - int value to be written
IOException
void writeLong(String fieldName,
long value)
throws IOException
fieldName - name of the fieldvalue - long value to be written
IOException
void writeUTF(String fieldName,
String value)
throws IOException
fieldName - name of the fieldvalue - utf string value to be written
IOException
void writeBoolean(String fieldName,
boolean value)
throws IOException
fieldName - name of the fieldvalue - int value to be written
IOException
void writeByte(String fieldName,
byte value)
throws IOException
fieldName - name of the fieldvalue - int value to be written
IOException
void writeChar(String fieldName,
int value)
throws IOException
fieldName - name of the fieldvalue - int value to be written
IOException
void writeDouble(String fieldName,
double value)
throws IOException
fieldName - name of the fieldvalue - int value to be written
IOException
void writeFloat(String fieldName,
float value)
throws IOException
fieldName - name of the fieldvalue - int value to be written
IOException
void writeShort(String fieldName,
short value)
throws IOException
fieldName - name of the fieldvalue - int value to be written
IOException
void writePortable(String fieldName,
Portable portable)
throws IOException
fieldName - name of the fieldportable - Portable to be written
IOException
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 class
IOException
void writeByteArray(String fieldName,
byte[] bytes)
throws IOException
fieldName - name of the fieldbytes - byte array to be written
IOException
void writeCharArray(String fieldName,
char[] chars)
throws IOException
fieldName - name of the fieldchars - char array to be written
IOException
void writeIntArray(String fieldName,
int[] ints)
throws IOException
fieldName - name of the fieldints - int array to be written
IOException
void writeLongArray(String fieldName,
long[] longs)
throws IOException
fieldName - name of the fieldlongs - long array to be written
IOException
void writeDoubleArray(String fieldName,
double[] values)
throws IOException
fieldName - name of the fieldvalues - double array to be written
IOException
void writeFloatArray(String fieldName,
float[] values)
throws IOException
fieldName - name of the fieldvalues - float array to be written
IOException
void writeShortArray(String fieldName,
short[] values)
throws IOException
fieldName - name of the fieldvalues - short array to be written
IOException
void writePortableArray(String fieldName,
Portable[] portables)
throws IOException
fieldName - name of the fieldportables - portable array to be written
IOException
ObjectDataOutput getRawDataOutput()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||