public interface PortableReader
int getVersion()
boolean hasField(String fieldName)
fieldName
- name of the field (does not support nested paths)FieldType getFieldType(String fieldName)
fieldName
- name of the fieldint getFieldClassId(String fieldName)
fieldName
- name of the fieldint readInt(String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional caselong readLong(String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional caseString readUTF(String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional caseboolean readBoolean(String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional casebyte readByte(String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional casechar readChar(String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional casedouble readDouble(String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional casefloat readFloat(String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional caseshort readShort(String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional case<P extends Portable> P readPortable(String fieldName) throws IOException
P
- the type of the portable readfieldName
- name of the fieldIOException
- in case of any exceptional casebyte[] readByteArray(String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional caseboolean[] readBooleanArray(String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional casechar[] readCharArray(String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional caseint[] readIntArray(String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional caselong[] readLongArray(String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional casedouble[] readDoubleArray(String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional casefloat[] readFloatArray(String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional caseshort[] readShortArray(String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional caseString[] readUTFArray(String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional casePortable[] readPortableArray(String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional caseObjectDataInput getRawDataInput() throws IOException
PortableWriter.getRawDataOutput()
.
Note that portable fields can not be read after this method is called. If this happens, an IOException will be thrown.
IOException
- in case of any exceptional caseCopyright © 2020 Hazelcast, Inc.. All rights reserved.