Class KryoObjectInput

  • All Implemented Interfaces:
    java.io.DataInput, java.io.ObjectInput, java.lang.AutoCloseable

    public class KryoObjectInput
    extends KryoDataInput
    implements java.io.ObjectInput
    An ObjectInput which reads data from an Input.

    Note this is not an implementation of ObjectInputStream which has special handling for Java serialization, such as support for readResolve.

    Author:
    Robert DiFalco
    • Constructor Detail

      • KryoObjectInput

        public KryoObjectInput​(Kryo kryo,
                               Input input)
    • Method Detail

      • readObject

        public java.lang.Object readObject()
                                    throws java.lang.ClassNotFoundException,
                                           java.io.IOException
        Specified by:
        readObject in interface java.io.ObjectInput
        Throws:
        java.lang.ClassNotFoundException
        java.io.IOException
      • read

        public int read()
                 throws java.io.IOException
        Specified by:
        read in interface java.io.ObjectInput
        Throws:
        java.io.IOException
      • read

        public int read​(byte[] b)
                 throws java.io.IOException
        Specified by:
        read in interface java.io.ObjectInput
        Throws:
        java.io.IOException
      • read

        public int read​(byte[] b,
                        int off,
                        int len)
                 throws java.io.IOException
        Specified by:
        read in interface java.io.ObjectInput
        Throws:
        java.io.IOException
      • skip

        public long skip​(long n)
                  throws java.io.IOException
        Specified by:
        skip in interface java.io.ObjectInput
        Throws:
        java.io.IOException
      • available

        public int available()
                      throws java.io.IOException
        Specified by:
        available in interface java.io.ObjectInput
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.ObjectInput
        Overrides:
        close in class KryoDataInput
        Throws:
        java.io.IOException