Class BinaryObjectDecoder
java.lang.Object
org.identityconnectors.framework.impl.serializer.binary.BinaryObjectDecoder
- All Implemented Interfaces:
BinaryObjectDeserializer,ObjectDecoder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the underlying streamintReturns the number of anonymous sub-objects.booleanReads the value in-line.booleanreadBooleanField(String fieldName, boolean dflt) Reads a boolean.byte[]reads the value in-line.bytereads the value in-line.Class<?> reads the value in-line.Class<?> readClassField(String fieldName, Class<?> dflt) Reads a Class.doublereads the value in-line.doublereadDoubleField(String fieldName, double dflt) Reads a double.floatReads the value in-line.floatreadFloatField(String fieldName, float dflt) Reads a float.intReads the value in-line.intreadIntField(String fieldName, int dflt) Reads an int.longreads the value in-line.longreadLongField(String fieldName, long dflt) Reads a long.Reads the next object from the stream.readObjectContents(int index) Reads a sub-objectreadObjectField(String fieldName, Class<?> expected, Object dflt) Reads an object using the appropriate serializer for that objectReads the value in-line.readStringField(String fieldName, String dflt) Reads a String.
-
Constructor Details
-
BinaryObjectDecoder
-
-
Method Details
-
close
public void close()Description copied from interface:BinaryObjectDeserializerCloses the underlying stream- Specified by:
closein interfaceBinaryObjectDeserializer
-
readObject
Description copied from interface:BinaryObjectDeserializerReads the next object from the stream. Throws a wrappedEOFExceptionif end of stream is reached.- Specified by:
readObjectin interfaceBinaryObjectDeserializer- Returns:
- The next object from the stream.
-
readBooleanContents
public boolean readBooleanContents()Description copied from interface:ObjectDecoderReads the value in-line.- Specified by:
readBooleanContentsin interfaceObjectDecoder
-
readBooleanField
Description copied from interface:ObjectDecoderReads a boolean.- Specified by:
readBooleanFieldin interfaceObjectDecoder- Parameters:
fieldName- A hint of the field name. Ignored for binary serialization. The attribute name for xml serialization
-
readByteContents
public byte readByteContents()Description copied from interface:ObjectDecoderreads the value in-line.- Specified by:
readByteContentsin interfaceObjectDecoder
-
readByteArrayContents
public byte[] readByteArrayContents()Description copied from interface:ObjectDecoderreads the value in-line.- Specified by:
readByteArrayContentsin interfaceObjectDecoder
-
readClassContents
Description copied from interface:ObjectDecoderreads the value in-line.- Specified by:
readClassContentsin interfaceObjectDecoder
-
readClassField
Description copied from interface:ObjectDecoderReads a Class.- Specified by:
readClassFieldin interfaceObjectDecoder- Parameters:
fieldName- A hint of the field name. Ignored for binary serialization. The attribute name for xml serialization
-
readDoubleContents
public double readDoubleContents()Description copied from interface:ObjectDecoderreads the value in-line.- Specified by:
readDoubleContentsin interfaceObjectDecoder
-
readDoubleField
Description copied from interface:ObjectDecoderReads a double.- Specified by:
readDoubleFieldin interfaceObjectDecoder- Parameters:
fieldName- A hint of the field name. Ignored for binary serialization. The attribute name for xml serialization
-
readFloatContents
public float readFloatContents()Description copied from interface:ObjectDecoderReads the value in-line.- Specified by:
readFloatContentsin interfaceObjectDecoder
-
readFloatField
Description copied from interface:ObjectDecoderReads a float.- Specified by:
readFloatFieldin interfaceObjectDecoder- Parameters:
fieldName- A hint of the field name. Ignored for binary serialization. The attribute name for xml serialization
-
readIntContents
public int readIntContents()Description copied from interface:ObjectDecoderReads the value in-line.- Specified by:
readIntContentsin interfaceObjectDecoder
-
readIntField
Description copied from interface:ObjectDecoderReads an int.- Specified by:
readIntFieldin interfaceObjectDecoder- Parameters:
fieldName- A hint of the field name. Ignored for binary serialization. The attribute name for xml serialization
-
readLongContents
public long readLongContents()Description copied from interface:ObjectDecoderreads the value in-line.- Specified by:
readLongContentsin interfaceObjectDecoder
-
readLongField
Description copied from interface:ObjectDecoderReads a long.- Specified by:
readLongFieldin interfaceObjectDecoder- Parameters:
fieldName- A hint of the field name. Ignored for binary serialization. The attribute name for xml serialization
-
getNumSubObjects
public int getNumSubObjects()Description copied from interface:ObjectDecoderReturns the number of anonymous sub-objects.- Specified by:
getNumSubObjectsin interfaceObjectDecoder- Returns:
-
readObjectContents
Description copied from interface:ObjectDecoderReads a sub-object- Specified by:
readObjectContentsin interfaceObjectDecoder
-
readObjectField
Description copied from interface:ObjectDecoderReads an object using the appropriate serializer for that object- Specified by:
readObjectFieldin interfaceObjectDecoder- Parameters:
fieldName- A hint of the field name. Ignored for binary serialization. The subelement name for xml serialization
-
readStringContents
Description copied from interface:ObjectDecoderReads the value in-line.- Specified by:
readStringContentsin interfaceObjectDecoder
-
readStringField
Description copied from interface:ObjectDecoderReads a String.- Specified by:
readStringFieldin interfaceObjectDecoder- Parameters:
fieldName- A hint of the field name. Ignored for binary serialization. The attribute name for xml serialization
-