Package com.esotericsoftware.kryo.io

Examples of com.esotericsoftware.kryo.io.Input


  }

  public Object read (Kryo kryo, Input input, Class type) {
    // The inflater would read from input beyond the compressed bytes if chunked enoding wasn't used.
    InflaterInputStream inflaterStream = new InflaterInputStream(new InputChunked(input, 256), new Inflater(noHeaders));
    return kryo.readObject(new Input(inflaterStream, 256), type, serializer);
  }
View Full Code Here


  private Kryo kryo;

  @Override
  public Input getInput() {
    return new Input();
  }
View Full Code Here

    return new Input();
  }

  @Override
  public Input getInput(int bufferSize) {
    return new Input(bufferSize);
  }
View Full Code Here

    return new Input(bufferSize);
  }

  @Override
  public Input getInput(byte[] buffer) {
    return new Input(buffer);
  }
View Full Code Here

    return new Input(buffer);
  }

  @Override
  public Input getInput(byte[] buffer, int offset, int count) {
    return new Input(buffer, offset, count);
  }
View Full Code Here

    return new Input(buffer, offset, count);
  }

  @Override
  public Input getInput(InputStream inputStream) {
    return new Input(inputStream);
  }
View Full Code Here

    return new Input(inputStream);
  }

  @Override
  public Input getInput(InputStream inputStream, int bufferSize) {
    return new Input(inputStream, bufferSize);
  }
View Full Code Here

  static private boolean isUnsafe = UnsafeUtil.unsafe() != null;
  private Kryo kryo;

  @Override
  public Input getInput() {
    return (isUnsafe)? new UnsafeInput() : new Input();
  }
View Full Code Here

    return (isUnsafe)? new UnsafeInput() : new Input();
  }

  @Override
  public Input getInput(int bufferSize) {
    return (isUnsafe)? new UnsafeInput(bufferSize) : new Input(bufferSize);
  }
View Full Code Here

    return (isUnsafe)? new UnsafeInput(bufferSize) : new Input(bufferSize);
  }

  @Override
  public Input getInput(byte[] buffer) {
    return (isUnsafe)? new UnsafeInput(buffer) : new Input(buffer);
  }
View Full Code Here

TOP

Related Classes of com.esotericsoftware.kryo.io.Input

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.