java.lang.Object
io.debezium.connector.oracle.logminer.processor.ehcache.serialization.AbstractSerializerStream
io.debezium.connector.oracle.logminer.processor.ehcache.serialization.SerializerInputStream
All Implemented Interfaces:
AutoCloseable

public class SerializerInputStream extends AbstractSerializerStream
A reader implementation enabling the reading of data from an InputStream.
Author:
Chris Cranford
  • Field Details

  • Constructor Details

    • SerializerInputStream

      public SerializerInputStream(InputStream inputStream)
  • Method Details

    • close

      public void close() throws Exception
      Throws:
      Exception
    • readScn

      public Scn readScn() throws IOException
      Reads an Oracle SCN value from the stream.
      Returns:
      the read SCN value or Scn.NULL if null
      Throws:
      IOException - when a read operation fails
    • readTableId

      public TableId readTableId() throws IOException
      Reads a Debezium TableId from the stream.
      Returns:
      the table id, never null
      Throws:
      IOException - when a read operation fails
    • readInstant

      public Instant readInstant() throws IOException
      Read an Instant from the stream.
      Returns:
      the read instant value, never null
      Throws:
      IOException - when a read operation fails
    • readBoolean

      public boolean readBoolean() throws IOException
      Read a boolean value from the stream.
      Returns:
      the boolean value
      Throws:
      IOException - when a read operation fails
    • readInt

      public int readInt() throws IOException
      Read an integer value from the stream.
      Returns:
      the integer value
      Throws:
      IOException - when a read operation fails
    • readString

      public String readString() throws IOException
      Read a string value from the stream.
      Returns:
      the string value or null when null
      Throws:
      IOException - when a read operation fails
    • readObjectArray

      public Object[] readObjectArray() throws IOException
      Reads an object array from the stream.
      Returns:
      the object array, never null
      Throws:
      IOException - when a read operation fails
    • readStringArray

      protected String[] readStringArray() throws IOException
      Reads a string array from the stream.
      Returns:
      the string array, never null
      Throws:
      IOException - when a read operation fails
    • stringArrayToObjectArray

      protected Object[] stringArrayToObjectArray(String[] values)
      Convert an array of string values, typically from the encoded stream back into their Java object representations after being deserialized.
      Parameters:
      values - array of string values to convert
      Returns:
      array of objects after conversion