Class KryoObjectInput

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

    public class KryoObjectInput
    extends KryoDataInput
    implements java.io.ObjectInput
    A kryo implementation of ObjectInput. Note that this is not an implementation of ObjectInputStream which has special handling for serialization in Java such as support for readResolve.
    • Field Detail

      • kryo

        private final Kryo kryo
    • Constructor Detail

      • KryoObjectInput

        public KryoObjectInput​(Kryo kryo,
                               Input in)
    • 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
        Throws:
        java.io.IOException