Package com.esotericsoftware.kryo.io

Examples of com.esotericsoftware.kryo.io.Output


  public void write (Kryo kryo, Output output, Object object) {
    Deflater deflater = new Deflater(compressionLevel, noHeaders);
    OutputChunked outputChunked = new OutputChunked(output, 256);
    DeflaterOutputStream deflaterStream = new DeflaterOutputStream(outputChunked, deflater);
    Output deflaterOutput = new Output(deflaterStream, 256);
    kryo.writeObject(deflaterOutput, object, serializer);
    deflaterOutput.flush();
    try {
      deflaterStream.finish();
    } catch (IOException ex) {
      throw new KryoException(ex);
    }
View Full Code Here


    return new Input(inputStream, bufferSize);
  }

  @Override
  public Output getOutput() {
    return new Output();
  }
View Full Code Here

    return new Output();
  }

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

    return new Output(bufferSize);
  }

  @Override
  public Output getOutput(int bufferSize, int maxBufferSize) {
    return new Output(bufferSize, maxBufferSize);
  }
View Full Code Here

    return new Output(bufferSize, maxBufferSize);
  }

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

    return new Output(buffer);
  }

  @Override
  public Output getOutput(byte[] buffer, int maxBufferSize) {
    return new Output(buffer, maxBufferSize);
  }
View Full Code Here

    return new Output(buffer, maxBufferSize);
  }

  @Override
  public Output getOutput(OutputStream outputStream) {
    return new Output(outputStream);
  }
View Full Code Here

    return new Output(outputStream);
  }

  @Override
  public Output getOutput(OutputStream outputStream, int bufferSize) {
    return new Output(outputStream, bufferSize);
  }
View Full Code Here

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

  @Override
  public Output getOutput() {
    return (isUnsafe)? new UnsafeOutput() : new Output();
  }
View Full Code Here

    return (isUnsafe)? new UnsafeOutput() : new Output();
  }

  @Override
  public Output getOutput(int bufferSize) {
    return (isUnsafe)? new UnsafeOutput(bufferSize) : new Output(bufferSize);
  }
View Full Code Here

TOP

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

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.