public final class FastInput extends Input
| Constructor and Description |
|---|
FastInput()
Creates an uninitialized Output.
|
FastInput(byte[] buffer)
Creates a new Output for writing to a byte array.
|
FastInput(byte[] buffer,
int offset,
int count)
Creates a new Output for writing to a byte array.
|
FastInput(InputStream outputStream)
Creates a new Output for writing to an OutputStream.
|
FastInput(InputStream outputStream,
int bufferSize)
Creates a new Output for writing to an OutputStream.
|
FastInput(int bufferSize)
Creates a new Output for writing to a byte array.
|
| Modifier and Type | Method and Description |
|---|---|
int |
readInt(boolean optimizePositive)
Reads a 1-5 byte int.
|
long |
readLong(boolean optimizePositive)
Reads a 1-9 byte long.
|
available, canReadInt, canReadLong, close, eof, fill, getBuffer, getInputStream, limit, position, read, read, read, readBoolean, readByte, readBytes, readBytes, readBytes, readByteUnsigned, readChar, readChars, readDouble, readDouble, readDoubles, readFloat, readFloat, readFloats, readInt, readInts, readInts, readLong, readLongs, readLongs, readShort, readShorts, readShortUnsigned, readString, readStringBuilder, readVarInt, readVarLong, require, rewind, setBuffer, setBuffer, setInputStream, setLimit, setPosition, setTotal, skip, skip, totalmark, markSupported, resetpublic FastInput()
Input.setBuffer(byte[], int, int) must be called before the Output is used.public FastInput(int bufferSize)
bufferSize - The initial and maximum size of the buffer. An exception is thrown if this size is exceeded.public FastInput(byte[] buffer)
Input.setBuffer(byte[])public FastInput(byte[] buffer,
int offset,
int count)
Input.setBuffer(byte[], int, int)public FastInput(InputStream outputStream)
public FastInput(InputStream outputStream, int bufferSize)
public int readInt(boolean optimizePositive)
throws KryoException
InputreadInt in class InputKryoExceptionpublic long readLong(boolean optimizePositive)
throws KryoException
InputreadLong in class InputKryoExceptionCopyright © 2023. All rights reserved.