Class BinaryObjectDecoder

java.lang.Object
org.identityconnectors.framework.impl.serializer.binary.BinaryObjectDecoder
All Implemented Interfaces:
BinaryObjectDeserializer, ObjectDecoder

public class BinaryObjectDecoder extends Object implements ObjectDecoder, BinaryObjectDeserializer
  • Constructor Details

    • BinaryObjectDecoder

      public BinaryObjectDecoder(InputStream in)
  • Method Details

    • close

      public void close()
      Description copied from interface: BinaryObjectDeserializer
      Closes the underlying stream
      Specified by:
      close in interface BinaryObjectDeserializer
    • readObject

      public Object readObject()
      Description copied from interface: BinaryObjectDeserializer
      Reads the next object from the stream. Throws a wrapped EOFException if end of stream is reached.
      Specified by:
      readObject in interface BinaryObjectDeserializer
      Returns:
      The next object from the stream.
    • readBooleanContents

      public boolean readBooleanContents()
      Description copied from interface: ObjectDecoder
      Reads the value in-line.
      Specified by:
      readBooleanContents in interface ObjectDecoder
    • readBooleanField

      public boolean readBooleanField(String fieldName, boolean dflt)
      Description copied from interface: ObjectDecoder
      Reads a boolean.
      Specified by:
      readBooleanField in interface ObjectDecoder
      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: ObjectDecoder
      reads the value in-line.
      Specified by:
      readByteContents in interface ObjectDecoder
    • readByteArrayContents

      public byte[] readByteArrayContents()
      Description copied from interface: ObjectDecoder
      reads the value in-line.
      Specified by:
      readByteArrayContents in interface ObjectDecoder
    • readClassContents

      public Class<?> readClassContents()
      Description copied from interface: ObjectDecoder
      reads the value in-line.
      Specified by:
      readClassContents in interface ObjectDecoder
    • readClassField

      public Class<?> readClassField(String fieldName, Class<?> dflt)
      Description copied from interface: ObjectDecoder
      Reads a Class.
      Specified by:
      readClassField in interface ObjectDecoder
      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: ObjectDecoder
      reads the value in-line.
      Specified by:
      readDoubleContents in interface ObjectDecoder
    • readDoubleField

      public double readDoubleField(String fieldName, double dflt)
      Description copied from interface: ObjectDecoder
      Reads a double.
      Specified by:
      readDoubleField in interface ObjectDecoder
      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: ObjectDecoder
      Reads the value in-line.
      Specified by:
      readFloatContents in interface ObjectDecoder
    • readFloatField

      public float readFloatField(String fieldName, float dflt)
      Description copied from interface: ObjectDecoder
      Reads a float.
      Specified by:
      readFloatField in interface ObjectDecoder
      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: ObjectDecoder
      Reads the value in-line.
      Specified by:
      readIntContents in interface ObjectDecoder
    • readIntField

      public int readIntField(String fieldName, int dflt)
      Description copied from interface: ObjectDecoder
      Reads an int.
      Specified by:
      readIntField in interface ObjectDecoder
      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: ObjectDecoder
      reads the value in-line.
      Specified by:
      readLongContents in interface ObjectDecoder
    • readLongField

      public long readLongField(String fieldName, long dflt)
      Description copied from interface: ObjectDecoder
      Reads a long.
      Specified by:
      readLongField in interface ObjectDecoder
      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: ObjectDecoder
      Returns the number of anonymous sub-objects.
      Specified by:
      getNumSubObjects in interface ObjectDecoder
      Returns:
    • readObjectContents

      public Object readObjectContents(int index)
      Description copied from interface: ObjectDecoder
      Reads a sub-object
      Specified by:
      readObjectContents in interface ObjectDecoder
    • readObjectField

      public Object readObjectField(String fieldName, Class<?> expected, Object dflt)
      Description copied from interface: ObjectDecoder
      Reads an object using the appropriate serializer for that object
      Specified by:
      readObjectField in interface ObjectDecoder
      Parameters:
      fieldName - A hint of the field name. Ignored for binary serialization. The subelement name for xml serialization
    • readStringContents

      public String readStringContents()
      Description copied from interface: ObjectDecoder
      Reads the value in-line.
      Specified by:
      readStringContents in interface ObjectDecoder
    • readStringField

      public String readStringField(String fieldName, String dflt)
      Description copied from interface: ObjectDecoder
      Reads a String.
      Specified by:
      readStringField in interface ObjectDecoder
      Parameters:
      fieldName - A hint of the field name. Ignored for binary serialization. The attribute name for xml serialization