com.hazelcast.nio.serialization
Class MorphingPortableReader

java.lang.Object
  extended by com.hazelcast.nio.serialization.DefaultPortableReader
      extended by com.hazelcast.nio.serialization.MorphingPortableReader
All Implemented Interfaces:
PortableReader

public class MorphingPortableReader
extends DefaultPortableReader


Field Summary
 
Fields inherited from class com.hazelcast.nio.serialization.DefaultPortableReader
cd
 
Constructor Summary
MorphingPortableReader(com.hazelcast.nio.serialization.PortableSerializer serializer, BufferObjectDataInput in, ClassDefinition cd)
           
 
Method Summary
 boolean readBoolean(String fieldName)
           
 byte readByte(String fieldName)
           
 byte[] readByteArray(String fieldName)
           
 char readChar(String fieldName)
           
 char[] readCharArray(String fieldName)
           
 double readDouble(String fieldName)
           
 double[] readDoubleArray(String fieldName)
           
 float readFloat(String fieldName)
           
 float[] readFloatArray(String fieldName)
           
 int readInt(String fieldName)
           
 int[] readIntArray(String fieldName)
           
 long readLong(String fieldName)
           
 long[] readLongArray(String fieldName)
           
 Portable readPortable(String fieldName)
           
 Portable[] readPortableArray(String fieldName)
           
 short readShort(String fieldName)
           
 short[] readShortArray(String fieldName)
           
 String readUTF(String fieldName)
           
 
Methods inherited from class com.hazelcast.nio.serialization.DefaultPortableReader
getFieldClassId, getFieldNames, getFieldType, getRawDataInput, getVersion, hasField
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MorphingPortableReader

public MorphingPortableReader(com.hazelcast.nio.serialization.PortableSerializer serializer,
                              BufferObjectDataInput in,
                              ClassDefinition cd)
Method Detail

readInt

public int readInt(String fieldName)
            throws IOException
Specified by:
readInt in interface PortableReader
Overrides:
readInt in class DefaultPortableReader
Parameters:
fieldName - name of the field
Returns:
the int value read
Throws:
IOException

readLong

public long readLong(String fieldName)
              throws IOException
Specified by:
readLong in interface PortableReader
Overrides:
readLong in class DefaultPortableReader
Parameters:
fieldName - name of the field
Returns:
the long value read
Throws:
IOException

readUTF

public String readUTF(String fieldName)
               throws IOException
Specified by:
readUTF in interface PortableReader
Overrides:
readUTF in class DefaultPortableReader
Parameters:
fieldName - name of the field
Returns:
the utf string value read
Throws:
IOException

readBoolean

public boolean readBoolean(String fieldName)
                    throws IOException
Specified by:
readBoolean in interface PortableReader
Overrides:
readBoolean in class DefaultPortableReader
Parameters:
fieldName - name of the field
Returns:
the boolean value read
Throws:
IOException

readByte

public byte readByte(String fieldName)
              throws IOException
Specified by:
readByte in interface PortableReader
Overrides:
readByte in class DefaultPortableReader
Parameters:
fieldName - name of the field
Returns:
the byte value read
Throws:
IOException

readChar

public char readChar(String fieldName)
              throws IOException
Specified by:
readChar in interface PortableReader
Overrides:
readChar in class DefaultPortableReader
Parameters:
fieldName - name of the field
Returns:
the char value read
Throws:
IOException

readDouble

public double readDouble(String fieldName)
                  throws IOException
Specified by:
readDouble in interface PortableReader
Overrides:
readDouble in class DefaultPortableReader
Parameters:
fieldName - name of the field
Returns:
the double value read
Throws:
IOException

readFloat

public float readFloat(String fieldName)
                throws IOException
Specified by:
readFloat in interface PortableReader
Overrides:
readFloat in class DefaultPortableReader
Parameters:
fieldName - name of the field
Returns:
the float value read
Throws:
IOException

readShort

public short readShort(String fieldName)
                throws IOException
Specified by:
readShort in interface PortableReader
Overrides:
readShort in class DefaultPortableReader
Parameters:
fieldName - name of the field
Returns:
the short value read
Throws:
IOException

readByteArray

public byte[] readByteArray(String fieldName)
                     throws IOException
Specified by:
readByteArray in interface PortableReader
Overrides:
readByteArray in class DefaultPortableReader
Parameters:
fieldName - name of the field
Returns:
the byte array value read
Throws:
IOException

readCharArray

public char[] readCharArray(String fieldName)
                     throws IOException
Specified by:
readCharArray in interface PortableReader
Overrides:
readCharArray in class DefaultPortableReader
Parameters:
fieldName - name of the field
Returns:
the char array value read
Throws:
IOException

readIntArray

public int[] readIntArray(String fieldName)
                   throws IOException
Specified by:
readIntArray in interface PortableReader
Overrides:
readIntArray in class DefaultPortableReader
Parameters:
fieldName - name of the field
Returns:
the int array value read
Throws:
IOException

readLongArray

public long[] readLongArray(String fieldName)
                     throws IOException
Specified by:
readLongArray in interface PortableReader
Overrides:
readLongArray in class DefaultPortableReader
Parameters:
fieldName - name of the field
Returns:
the long array value read
Throws:
IOException

readDoubleArray

public double[] readDoubleArray(String fieldName)
                         throws IOException
Specified by:
readDoubleArray in interface PortableReader
Overrides:
readDoubleArray in class DefaultPortableReader
Parameters:
fieldName - name of the field
Returns:
the double array value read
Throws:
IOException

readFloatArray

public float[] readFloatArray(String fieldName)
                       throws IOException
Specified by:
readFloatArray in interface PortableReader
Overrides:
readFloatArray in class DefaultPortableReader
Parameters:
fieldName - name of the field
Returns:
the float array value read
Throws:
IOException

readShortArray

public short[] readShortArray(String fieldName)
                       throws IOException
Specified by:
readShortArray in interface PortableReader
Overrides:
readShortArray in class DefaultPortableReader
Parameters:
fieldName - name of the field
Returns:
the short array value read
Throws:
IOException

readPortable

public Portable readPortable(String fieldName)
                      throws IOException
Specified by:
readPortable in interface PortableReader
Overrides:
readPortable in class DefaultPortableReader
Parameters:
fieldName - name of the field
Returns:
the portable value read
Throws:
IOException

readPortableArray

public Portable[] readPortableArray(String fieldName)
                             throws IOException
Specified by:
readPortableArray in interface PortableReader
Overrides:
readPortableArray in class DefaultPortableReader
Parameters:
fieldName - name of the field
Returns:
the portabke value read
Throws:
IOException


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