public abstract class UnsafeReads extends com.esotericsoftware.kryo.io.Input implements ExtendedDataInput
| Constructor and Description |
|---|
UnsafeReads(int length)
Constructor
|
UnsafeReads(long offset,
int length)
Constructor with offset
|
| Modifier and Type | Method and Description |
|---|---|
abstract int |
available()
How many bytes are still available?
|
abstract int |
getPos()
What position in the stream?
|
String |
readLine() |
String |
readUTF() |
protected int |
require(int requiredBytes)
Check whether there are enough remaining bytes for an operation
|
int |
skipBytes(int n) |
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, readInt, readInts, readInts, readLong, readLong, readLongs, readLongs, readShort, readShorts, readShortUnsigned, readString, readStringBuilder, readVarInt, readVarLong, rewind, setBuffer, setBuffer, setInputStream, setLimit, setPosition, setTotal, skip, skip, totalmark, markSupported, resetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitendOfInputreadBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLong, readShort, readUnsignedByte, readUnsignedShortpublic UnsafeReads(int length)
length - buf lengthpublic UnsafeReads(long offset,
int length)
offset - offset in memorylength - buf lengthpublic abstract int available()
available in interface ExtendedDataInputavailable in class com.esotericsoftware.kryo.io.Inputpublic abstract int getPos()
getPos in interface ExtendedDataInputprotected int require(int requiredBytes)
require in class com.esotericsoftware.kryo.io.InputrequiredBytes - Bytes required to readpublic String readLine() throws IOException
readLine in interface DataInputIOExceptionpublic String readUTF() throws IOException
readUTF in interface DataInputIOExceptionCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.