org.apache.tinkerpop.gremlin.structure.io.gryo.kryoshim

## Interface KryoShim<I extends InputShim,O extends OutputShim>

- Type Parameters:
    `I` - this interface's complementary InputShim
    `O` - this interface's complementary OutputShim
  All Known Implementing Classes:
    ShadedKryoAdapter, UnshadedKryoAdapter

      public interface KryoShim<I extends InputShim,O extends OutputShim>

  A minimal `org.apache.tinkerpop.shaded.kryo.Kryo`-like abstraction. See that class for method documentation.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `Object` | `readClassAndObject(I input)`
    `<T> T` | `readObject(I input, Class<T> type)`
    `<T> T` | `readObjectOrNull(I input, Class<T> type)`
    `void` | `writeClassAndObject(O output, Object object)`
    `void` | `writeObject(O output, Object object)`
    `void` | `writeObjectOrNull(O output, Object object, Class type)`

- - ### Method Detail

    - #### readObject

          <T> T readObject(I input,
                           Class<T> type)

    - #### readClassAndObject

          Object readClassAndObject(I input)

    - #### writeObject

          void writeObject(O output,
                           Object object)

    - #### writeClassAndObject

          void writeClassAndObject(O output,
                                   Object object)

    - #### readObjectOrNull

          <T> T readObjectOrNull(I input,
                                 Class<T> type)

    - #### writeObjectOrNull

          void writeObjectOrNull(O output,
                                 Object object,
                                 Class type)

Copyright © 2013–2019 Apache Software Foundation. All rights reserved.