com.hazelcast.nio.serialization
Interface PortableWriter

All Known Implementing Classes:
DefaultPortableWriter

public interface PortableWriter

Author:
mdogan 12/26/12

Method Summary
 com.hazelcast.nio.ObjectDataOutput getRawDataOutput()
           
 int getVersion()
           
 void writeBoolean(String fieldName, boolean value)
           
 void writeByte(String fieldName, byte value)
           
 void writeByteArray(String fieldName, byte[] bytes)
           
 void writeChar(String fieldName, int value)
           
 void writeCharArray(String fieldName, char[] chars)
           
 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[] ints)
           
 void writeLong(String fieldName, long value)
           
 void writeLongArray(String fieldName, long[] longs)
           
 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 value)
           
 

Method Detail

getVersion

int getVersion()

writeInt

void writeInt(String fieldName,
              int value)
              throws IOException
Throws:
IOException

writeLong

void writeLong(String fieldName,
               long value)
               throws IOException
Throws:
IOException

writeUTF

void writeUTF(String fieldName,
              String value)
              throws IOException
Throws:
IOException

writeBoolean

void writeBoolean(String fieldName,
                  boolean value)
                  throws IOException
Throws:
IOException

writeByte

void writeByte(String fieldName,
               byte value)
               throws IOException
Throws:
IOException

writeChar

void writeChar(String fieldName,
               int value)
               throws IOException
Throws:
IOException

writeDouble

void writeDouble(String fieldName,
                 double value)
                 throws IOException
Throws:
IOException

writeFloat

void writeFloat(String fieldName,
                float value)
                throws IOException
Throws:
IOException

writeShort

void writeShort(String fieldName,
                short value)
                throws IOException
Throws:
IOException

writePortable

void writePortable(String fieldName,
                   Portable portable)
                   throws IOException
Throws:
IOException

writeNullPortable

void writeNullPortable(String fieldName,
                       int factoryId,
                       int classId)
                       throws IOException
Throws:
IOException

writeByteArray

void writeByteArray(String fieldName,
                    byte[] bytes)
                    throws IOException
Throws:
IOException

writeCharArray

void writeCharArray(String fieldName,
                    char[] chars)
                    throws IOException
Throws:
IOException

writeIntArray

void writeIntArray(String fieldName,
                   int[] ints)
                   throws IOException
Throws:
IOException

writeLongArray

void writeLongArray(String fieldName,
                    long[] longs)
                    throws IOException
Throws:
IOException

writeDoubleArray

void writeDoubleArray(String fieldName,
                      double[] values)
                      throws IOException
Throws:
IOException

writeFloatArray

void writeFloatArray(String fieldName,
                     float[] values)
                     throws IOException
Throws:
IOException

writeShortArray

void writeShortArray(String fieldName,
                     short[] values)
                     throws IOException
Throws:
IOException

writePortableArray

void writePortableArray(String fieldName,
                        Portable[] portables)
                        throws IOException
Throws:
IOException

getRawDataOutput

com.hazelcast.nio.ObjectDataOutput getRawDataOutput()
                                                    throws IOException
Throws:
IOException


Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.