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, total
mark, markSupported, reset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
endOfInput
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLong, readShort, readUnsignedByte, readUnsignedShort
public UnsafeReads(int length)
length
- buf lengthpublic UnsafeReads(long offset, int length)
offset
- offset in memorylength
- buf lengthpublic abstract int available()
available
in interface ExtendedDataInput
available
in class com.esotericsoftware.kryo.io.Input
public abstract int getPos()
getPos
in interface ExtendedDataInput
protected int require(int requiredBytes)
require
in class com.esotericsoftware.kryo.io.Input
requiredBytes
- Bytes required to readpublic String readLine() throws IOException
readLine
in interface DataInput
IOException
public String readUTF() throws IOException
readUTF
in interface DataInput
IOException
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.