public class PortableReaderExImpl extends Object implements PortableReader, PortableRawReaderEx, ObjectInput
| Constructor and Description |
|---|
PortableReaderExImpl(PortableContext ctx,
byte[] arr,
int start,
ClassLoader ldr) |
public PortableReaderExImpl(PortableContext ctx, byte[] arr, int start, ClassLoader ldr)
ctx - Context.arr - Array.start - Start.ldr - Class loader.public Object unmarshal(int offset) throws PortableException
offset - Offset in the array.PortableException - In case of error.public byte readByte(String fieldName) throws PortableException
readByte in interface PortableReaderfieldName - Field name.PortableException - In case of error.public byte readByte()
throws PortableException
readByte in interface DataInputreadByte in interface PortableRawReaderPortableException - In case of error.public short readShort(String fieldName) throws PortableException
readShort in interface PortableReaderfieldName - Field name.PortableException - In case of error.public short readShort()
throws PortableException
readShort in interface DataInputreadShort in interface PortableRawReaderPortableException - In case of error.public int readInt(String fieldName) throws PortableException
readInt in interface PortableReaderfieldName - Field name.PortableException - In case of error.public int readInt()
throws PortableException
readInt in interface DataInputreadInt in interface PortableRawReaderPortableException - In case of error.public long readLong(String fieldName) throws PortableException
readLong in interface PortableReaderfieldName - Field name.PortableException - In case of error.public long readLong()
throws PortableException
readLong in interface DataInputreadLong in interface PortableRawReaderPortableException - In case of error.public float readFloat(String fieldName) throws PortableException
readFloat in interface PortableReaderfieldName - Field name.PortableException - In case of error.public float readFloat()
throws PortableException
readFloat in interface DataInputreadFloat in interface PortableRawReaderPortableException - In case of error.public double readDouble(String fieldName) throws PortableException
readDouble in interface PortableReaderfieldName - Field name.PortableException - In case of error.public double readDouble()
throws PortableException
readDouble in interface DataInputreadDouble in interface PortableRawReaderPortableException - In case of error.public char readChar(String fieldName) throws PortableException
readChar in interface PortableReaderfieldName - Field name.PortableException - In case of error.public char readChar()
throws PortableException
readChar in interface DataInputreadChar in interface PortableRawReaderPortableException - In case of error.public boolean readBoolean(String fieldName) throws PortableException
readBoolean in interface PortableReaderfieldName - Field name.PortableException - In case of error.public boolean readBoolean()
throws PortableException
readBoolean in interface DataInputreadBoolean in interface PortableRawReaderPortableException - In case of error.@Nullable public BigDecimal readDecimal(String fieldName) throws PortableException
readDecimal in interface PortableReaderfieldName - Field name.PortableException - In case of error.@Nullable public BigDecimal readDecimal() throws PortableException
readDecimal in interface PortableRawReaderPortableException - In case of error.@Nullable public String readString(String fieldName) throws PortableException
readString in interface PortableReaderfieldName - Field name.PortableException - In case of error.@Nullable public String readString() throws PortableException
readString in interface PortableRawReaderPortableException - In case of error.@Nullable public UUID readUuid(String fieldName) throws PortableException
readUuid in interface PortableReaderfieldName - Field name.PortableException - In case of error.@Nullable public UUID readUuid() throws PortableException
readUuid in interface PortableRawReaderPortableException - In case of error.@Nullable public Date readDate(String fieldName) throws PortableException
readDate in interface PortableReaderfieldName - Field name.PortableException - In case of error.@Nullable public Date readDate() throws PortableException
readDate in interface PortableRawReaderPortableException - In case of error.@Nullable public Timestamp readTimestamp(String fieldName) throws PortableException
readTimestamp in interface PortableReaderfieldName - Field name.PortableException - In case of error.@Nullable public Timestamp readTimestamp() throws PortableException
readTimestamp in interface PortableRawReaderPortableException - In case of error.@Nullable public <T> T readObject(String fieldName) throws PortableException
readObject in interface PortableReaderfieldName - Field name.PortableException - In case of error.public Object readObject() throws PortableException
readObject in interface ObjectInputreadObject in interface PortableRawReaderPortableException - In case of error.@Nullable public Object readObjectDetached() throws PortableException
readObjectDetached in interface PortableRawReaderExPortableException - In case of error.@Nullable public byte[] readByteArray(String fieldName) throws PortableException
readByteArray in interface PortableReaderfieldName - Field name.PortableException - In case of error.@Nullable public byte[] readByteArray() throws PortableException
readByteArray in interface PortableRawReaderPortableException - In case of error.@Nullable public short[] readShortArray(String fieldName) throws PortableException
readShortArray in interface PortableReaderfieldName - Field name.PortableException - In case of error.@Nullable public short[] readShortArray() throws PortableException
readShortArray in interface PortableRawReaderPortableException - In case of error.@Nullable public int[] readIntArray(String fieldName) throws PortableException
readIntArray in interface PortableReaderfieldName - Field name.PortableException - In case of error.@Nullable public int[] readIntArray() throws PortableException
readIntArray in interface PortableRawReaderPortableException - In case of error.@Nullable public long[] readLongArray(String fieldName) throws PortableException
readLongArray in interface PortableReaderfieldName - Field name.PortableException - In case of error.@Nullable public long[] readLongArray() throws PortableException
readLongArray in interface PortableRawReaderPortableException - In case of error.@Nullable public float[] readFloatArray(String fieldName) throws PortableException
readFloatArray in interface PortableReaderfieldName - Field name.PortableException - In case of error.@Nullable public float[] readFloatArray() throws PortableException
readFloatArray in interface PortableRawReaderPortableException - In case of error.@Nullable public double[] readDoubleArray(String fieldName) throws PortableException
readDoubleArray in interface PortableReaderfieldName - Field name.PortableException - In case of error.@Nullable public double[] readDoubleArray() throws PortableException
readDoubleArray in interface PortableRawReaderPortableException - In case of error.@Nullable public char[] readCharArray(String fieldName) throws PortableException
readCharArray in interface PortableReaderfieldName - Field name.PortableException - In case of error.@Nullable public char[] readCharArray() throws PortableException
readCharArray in interface PortableRawReaderPortableException - In case of error.@Nullable public boolean[] readBooleanArray(String fieldName) throws PortableException
readBooleanArray in interface PortableReaderfieldName - Field name.PortableException - In case of error.@Nullable public boolean[] readBooleanArray() throws PortableException
readBooleanArray in interface PortableRawReaderPortableException - In case of error.@Nullable public BigDecimal[] readDecimalArray(String fieldName) throws PortableException
readDecimalArray in interface PortableReaderfieldName - Field name.PortableException - In case of error.@Nullable public BigDecimal[] readDecimalArray() throws PortableException
readDecimalArray in interface PortableRawReaderPortableException - In case of error.@Nullable public String[] readStringArray(String fieldName) throws PortableException
readStringArray in interface PortableReaderfieldName - Field name.PortableException - In case of error.@Nullable public String[] readStringArray() throws PortableException
readStringArray in interface PortableRawReaderPortableException - In case of error.@Nullable public UUID[] readUuidArray(String fieldName) throws PortableException
readUuidArray in interface PortableReaderfieldName - Field name.PortableException - In case of error.@Nullable public UUID[] readUuidArray() throws PortableException
readUuidArray in interface PortableRawReaderPortableException - In case of error.@Nullable public Date[] readDateArray(String fieldName) throws PortableException
readDateArray in interface PortableReaderfieldName - Field name.PortableException - In case of error.@Nullable public Date[] readDateArray() throws PortableException
readDateArray in interface PortableRawReaderPortableException - In case of error.@Nullable public Object[] readObjectArray(String fieldName) throws PortableException
readObjectArray in interface PortableReaderfieldName - Field name.PortableException - In case of error.@Nullable public Object[] readObjectArray() throws PortableException
readObjectArray in interface PortableRawReaderPortableException - In case of error.@Nullable public <T> Collection<T> readCollection(String fieldName) throws PortableException
readCollection in interface PortableReaderfieldName - Field name.PortableException - In case of error.@Nullable public <T> Collection<T> readCollection() throws PortableException
readCollection in interface PortableRawReaderPortableException - In case of error.@Nullable public <T> Collection<T> readCollection(String fieldName, Class<? extends Collection<T>> colCls) throws PortableException
readCollection in interface PortableReaderfieldName - Field name.colCls - Collection class.PortableException - In case of error.@Nullable public <T> Collection<T> readCollection(Class<? extends Collection<T>> colCls) throws PortableException
readCollection in interface PortableRawReadercolCls - Collection class.PortableException - In case of error.@Nullable public <K,V> Map<K,V> readMap(String fieldName) throws PortableException
readMap in interface PortableReaderfieldName - Field name.PortableException - In case of error.@Nullable public <K,V> Map<K,V> readMap() throws PortableException
readMap in interface PortableRawReaderPortableException - In case of error.@Nullable public <K,V> Map<K,V> readMap(String fieldName, Class<? extends Map<K,V>> mapCls) throws PortableException
readMap in interface PortableReaderfieldName - Field name.mapCls - Map class.PortableException - In case of error.@Nullable public <K,V> Map<K,V> readMap(Class<? extends Map<K,V>> mapCls) throws PortableException
readMap in interface PortableRawReadermapCls - Map class.PortableException - In case of error.@Nullable public <T extends Enum<?>> T readEnum(String fieldName) throws PortableException
readEnum in interface PortableReaderfieldName - Field name.PortableException - In case of error.@Nullable public <T extends Enum<?>> T readEnum() throws PortableException
readEnum in interface PortableRawReaderPortableException - In case of error.@Nullable public <T extends Enum<?>> T[] readEnumArray(String fieldName) throws PortableException
readEnumArray in interface PortableReaderfieldName - Field name.PortableException - In case of error.@Nullable public <T extends Enum<?>> T[] readEnumArray() throws PortableException
readEnumArray in interface PortableRawReaderPortableException - In case of error.public boolean hasField(String fieldName)
fieldName - Field name.true if field is set.public PortableRawReader rawReader()
rawReader in interface PortableReaderpublic int readUnsignedByte()
throws IOException
readUnsignedByte in interface DataInputIOExceptionpublic int readUnsignedShort()
throws IOException
readUnsignedShort in interface DataInputIOExceptionpublic String readLine() throws IOException
readLine in interface DataInputIOException@NotNull public String readUTF() throws IOException
readUTF in interface DataInputIOExceptionpublic void readFully(byte[] b)
throws IOException
readFully in interface DataInputIOExceptionpublic void readFully(byte[] b,
int off,
int len)
throws IOException
readFully in interface DataInputIOExceptionpublic int skipBytes(int n)
throws IOException
skipBytes in interface DataInputIOExceptionpublic int read()
throws IOException
read in interface ObjectInputIOExceptionpublic int read(byte[] b)
throws IOException
read in interface ObjectInputIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in interface ObjectInputIOExceptionpublic long skip(long n)
throws IOException
skip in interface ObjectInputIOExceptionpublic int available()
throws IOException
available in interface ObjectInputIOExceptionpublic void close()
throws IOException
close in interface ObjectInputclose in interface AutoCloseableIOException
Follow @ApacheIgnite
Ignite Fabric : ver. 1.4.0 Release Date : September 24 2015