public class HexDumpBytes extends Object implements Bytes<Void>
DEFAULT_BYTE_BUFFER_CAPACITY, MAX_BYTE_BUFFER_CAPACITY, MAX_CAPACITY
charToString
JAVA9_STRING_CODER_LATIN, JAVA9_STRING_CODER_UTF16
Constructor and Description |
---|
HexDumpBytes() |
Modifier and Type | Method and Description |
---|---|
long |
addressForRead(long offset)
Obtain the underlying addressForRead.
|
long |
addressForWrite(long offset)
Obtain the underlying addressForRead.
|
long |
addressForWritePosition() |
BytesStore |
bytesStore() |
long |
capacity() |
Bytes |
clear()
Set the readPosition= writePosition = start, writeLimit = capacity
|
Bytes<Void> |
clearAndPad(long length)
Clear a buffer, with a given padding to allow for prepending later.
|
Bytes<Void> |
comment(CharSequence comment)
Add comment as approriate for the toHexString format
|
Bytes |
compact()
Compact these Bytes by moving the readPosition to the start.
|
boolean |
compareAndSwapInt(long offset,
int expected,
int value)
Perform a 32-bit CAS at a given offset.
|
boolean |
compareAndSwapLong(long offset,
long expected,
long value)
Perform a 64-bit CAS at a given offset.
|
BytesStore |
copy() |
void |
ensureCapacity(long size)
grow the buffer if the buffer is elastic, if the buffer is not elastic and there is not
enough capacity then this method will throws
BufferOverflowException |
static HexDumpBytes |
fromText(CharSequence text) |
static HexDumpBytes |
fromText(Reader reader) |
BytesOut |
indent(int n)
Adjust the indent for nested data
|
boolean |
isDirectMemory() |
boolean |
isElastic() |
int |
lastDecimalPlaces() |
void |
lastDecimalPlaces(int lastDecimalPlaces)
Store the last number of decimal places.
|
boolean |
lenient() |
void |
lenient(boolean lenient)
When there is no more data to read, return zero, false and empty string.
|
void |
move(long from,
long to,
long length) |
void |
nativeRead(long address,
long size)
This is an expert level method for copying raw native memory in bulk.
|
void |
nativeRead(long position,
long address,
long size)
expert level method for copying data to native memory.
|
void |
nativeWrite(long address,
long size)
This is an expert level method for writing out data to native memory.
|
void |
nativeWrite(long address,
long position,
long size)
expert level method to copy data from native memory into the BytesStore
|
int |
numberWrap() |
HexDumpBytes |
numberWrap(int numberWrap) |
HexDumpBytes |
offsetFormat(OffsetFormat offsetFormat) |
default void |
parse8bit(Appendable buffer,
StopCharsTester stopCharsTester)
parse text with ISO-8859-1 decoding as character terminated.
|
default void |
parse8bit(Appendable buffer,
StopCharTester stopCharTester)
parse text with ISO-8859-1 decoding as character terminated.
|
default void |
parse8bit(Bytes buffer,
StopCharsTester stopCharsTester) |
default String |
parse8bit(StopCharTester stopCharTester)
parse text with ISO-8859-1 decoding as character terminated.
|
default void |
parse8bit(StringBuilder buffer,
StopCharsTester stopCharsTester) |
default BigDecimal |
parseBigDecimal() |
default Boolean |
parseBoolean() |
default Boolean |
parseBoolean(StopCharTester tester)
Return true or false, or null if it could not be detected
as true or false.
|
default double |
parseDouble()
parse text as a double decimal.
|
default float |
parseFloat()
parse text as a float decimal.
|
default int |
parseInt()
parse text as an int.
|
default long |
parseLong()
parse text as a long integer.
|
default long |
parseLongDecimal()
Parse the significant digits of a decimal number.
|
default void |
parseUTF(Appendable buffer,
StopCharsTester stopCharsTester)
Deprecated.
|
default void |
parseUTF(Appendable buffer,
StopCharTester stopCharTester)
Deprecated.
|
default String |
parseUTF(StopCharTester stopCharTester)
Deprecated.
|
default void |
parseUtf8(Appendable buffer,
StopCharsTester stopCharsTester)
parse text with UTF-8 decoding as one or two character terminated.
|
default void |
parseUtf8(Appendable buffer,
StopCharTester stopCharTester)
parse text with UTF-8 decoding as character terminated.
|
default String |
parseUtf8(StopCharTester stopCharTester)
parse text with UTF-8 decoding as character terminated.
|
int |
peekUnsignedByte() |
int |
peekUnsignedByte(long offset)
Read an unsigned byte at an offset, or -1
|
Bytes<Void> |
prewrite(byte[] bytes)
Write backward in binary a byte
|
Bytes<Void> |
prewrite(BytesStore bytes)
Write backward in binary a byte
|
Bytes<Void> |
prewriteByte(byte b)
Write backward in binary a byte
|
Bytes<Void> |
prewriteInt(int i)
Write backward in binary a 4 byte int
|
Bytes<Void> |
prewriteLong(long l)
Write backward in binary an 8 byte long
|
Bytes<Void> |
prewriteShort(short i)
Write backward in binary a 2 byte int
|
int |
read(byte[] bytes) |
int |
read(byte[] bytes,
int off,
int len) |
void |
read(ByteBuffer buffer) |
void |
read(Bytes bytes,
int length) |
int |
read(char[] bytes,
int off,
int len) |
String |
read8bit() |
<ACS extends Appendable & CharSequence> |
read8bit(ACS sb) |
boolean |
read8bit(Bytes b) |
boolean |
read8bit(StringBuilder sb) |
BigDecimal |
readBigDecimal() |
BigInteger |
readBigInteger() |
boolean |
readBoolean() |
byte |
readByte() |
byte |
readByte(long offset)
Read byte at an offset
|
double |
readDouble() |
double |
readDouble(long offset)
Read a double at an offset
|
<E extends Enum<E>> |
readEnum(Class<E> eClass) |
default Reader |
reader()
Access these bytes as an ISO-8859-1 encoded Reader
|
float |
readFloat() |
float |
readFloat(long offset)
Read a float at an offset
|
void |
readHistogram(net.openhft.chronicle.core.util.Histogram histogram) |
int |
readInt() |
int |
readInt(long offset)
Read an int at an offset
|
int |
readInt24() |
long |
readLimit() |
Bytes<Void> |
readLimit(long limit) |
long |
readLong() |
long |
readLong(long offset)
Read a long at an offset
|
<T extends ReadBytesMarshallable> |
readMarshallableLength16(Class<T> tClass,
T object) |
long |
readPosition()
The read position must be start() <= readPosition() && readPosition() <= readLimit() && readPosition < safeLimit()
|
Bytes<Void> |
readPosition(long position) |
Bytes<Void> |
readPositionRemaining(long position,
long remaining) |
Bytes<Void> |
readPositionUnlimited(long position) |
long |
readRemaining() |
short |
readShort() |
short |
readShort(long offset)
Read a short at an offset
|
Bytes<Void> |
readSkip(long bytesToSkip)
Skip a number of bytes by moving the readPosition.
|
long |
readStopBit() |
char |
readStopBitChar() |
double |
readStopBitDecimal() |
double |
readStopBitDouble() |
int |
readUnsignedByte() |
long |
readUnsignedInt() |
int |
readUnsignedInt24() |
int |
readUnsignedShort() |
String |
readUtf8()
The same as readUTF() except the length is stop bit encoded.
|
<ACS extends Appendable & CharSequence> |
readUtf8(ACS sb)
The same as readUtf8() except the chars are copied to a truncated StringBuilder.
|
String |
readUTFΔ() |
<ACS extends Appendable & CharSequence> |
readUTFΔ(ACS sb) |
byte |
readVolatileByte(long offset)
Read a 8-bit byte from memory with a load barrier.
|
int |
readVolatileInt() |
int |
readVolatileInt(long offset)
Read a 32-bit int from memory with a load barrier.
|
long |
readVolatileLong() |
long |
readVolatileLong(long offset)
Read a 64-bit long from memory with a load barrier.
|
short |
readVolatileShort(long offset)
Read a 16-bit short from memory with a load barrier.
|
void |
readWithLength(Bytes bytes) |
void |
readWithLength(long length,
BytesOut<Void> bytesOut) |
void |
readWithLength(long length,
net.openhft.chronicle.core.util.ThrowingConsumer<Bytes<Void>,net.openhft.chronicle.core.io.IORuntimeException> bytesConsumer)
Perform a set of actions with a temporary bounds mode.
|
void |
readWithLength0(long length,
net.openhft.chronicle.core.util.ThrowingConsumerNonCapturing<Bytes<Void>,net.openhft.chronicle.core.io.IORuntimeException,BytesOut> bytesConsumer,
StringBuilder sb,
BytesOut toBytes)
Perform a set of actions with a temporary bounds mode.
|
long |
realWriteRemaining() |
long |
refCount() |
void |
release() |
void |
reserve() |
boolean |
retainsComments()
Do these Bytes support saving comments
|
default boolean |
skipTo(StopCharTester tester)
Skip text until a terminating character is reached.
|
void |
testAndSetInt(long offset,
int expected,
int value) |
String |
toHexString()
display the hex data of
Bytes from the position() to the limit() |
boolean |
tryReserve() |
void |
uncheckedReadSkipBackOne()
Read skip -1 when you are sure this is safe.
|
void |
uncheckedReadSkipOne()
Read skip 1 when you are sure this is safe.
|
int |
uncheckedReadUnsignedByte() |
Void |
underlyingObject() |
Bytes<Void> |
write(byte[] bytes) |
Bytes<Void> |
write(byte[] bytes,
int offset,
int length)
Write all data or fail.
|
Bytes<Void> |
write(BytesStore bytes) |
Bytes<Void> |
write(BytesStore bytes,
long offset,
long length)
Write all data or fail.
|
Bytes<Void> |
write(CharSequence cs) |
Bytes<Void> |
write(CharSequence s,
int start,
int length) |
Bytes |
write(InputStream inputStream) |
Bytes<Void> |
write(long offsetInRDO,
byte[] bytes,
int offset,
int length) |
void |
write(long offsetInRDO,
ByteBuffer bytes,
int offset,
int length) |
Bytes<Void> |
write(long writeOffset,
RandomDataInput bytes,
long readOffset,
long length) |
Bytes<Void> |
write(RandomDataInput bytes)
Write all data or fail.
|
Bytes<Void> |
write(RandomDataInput bytes,
long offset,
long length)
Write all data or fail.
|
Bytes<Void> |
write8bit(BytesStore bs) |
Bytes<Void> |
write8bit(CharSequence cs) |
Bytes<Void> |
write8bit(CharSequence s,
int start,
int length) |
Bytes<Void> |
write8bit(String s) |
void |
writeBigDecimal(BigDecimal bd) |
void |
writeBigInteger(BigInteger bi) |
Bytes<Void> |
writeBoolean(boolean flag) |
Bytes<Void> |
writeByte(byte i8) |
Bytes<Void> |
writeByte(long offset,
byte i8)
Write an unsigned byte at an offset.
|
Bytes<Void> |
writeDouble(double d) |
Bytes<Void> |
writeDouble(long offset,
double d)
Write a double at an offset.
|
Bytes<Void> |
writeDoubleAndInt(double d,
int i) |
<E extends Enum<E>> |
writeEnum(E e) |
Bytes<Void> |
writeFloat(float f) |
Bytes<Void> |
writeFloat(long offset,
float d)
Write a float at an offset.
|
void |
writeHistogram(net.openhft.chronicle.core.util.Histogram histogram) |
Bytes<Void> |
writeInt(int i) |
Bytes<Void> |
writeInt(long offset,
int i)
Write an int at an offset.
|
Bytes<Void> |
writeInt24(int i) |
Bytes<Void> |
writeInt24(long offset,
int i) |
Bytes<Void> |
writeIntAdv(int i,
int advance) |
long |
writeLimit() |
Bytes<Void> |
writeLimit(long limit) |
Bytes<Void> |
writeLong(long i64) |
Bytes<Void> |
writeLong(long offset,
long i)
Write a long at an offset.
|
Bytes<Void> |
writeLongAdv(long i64,
int advance) |
void |
writeMarshallableLength16(WriteBytesMarshallable marshallable) |
Bytes<Void> |
writeOrderedInt(int i) |
Bytes<Void> |
writeOrderedInt(long offset,
int i)
Perform a non stalling write with a store barrier.
|
Bytes<Void> |
writeOrderedLong(long i) |
Bytes<Void> |
writeOrderedLong(long offset,
long i)
Perform a non stalling write with a store barrier.
|
long |
writePosition()
The read position must be readPosition() <= writePosition() && writePosition() <= writeLimit()
|
Bytes<Void> |
writePosition(long position) |
void |
writePositionRemaining(long position,
long length) |
long |
writeRemaining() |
Bytes<Void> |
writeShort(long offset,
short i)
Write a short at an offset.
|
Bytes<Void> |
writeShort(short i16) |
Bytes<Void> |
writeSkip(long bytesToSkip)
Skip a number of bytes by moving the writePosition.
|
Bytes<Void> |
writeSome(ByteBuffer buffer) |
Bytes<Void> |
writeSome(Bytes bytes) |
Bytes<Void> |
writeStopBit(char x) |
Bytes<Void> |
writeStopBit(double d) |
Bytes<Void> |
writeStopBit(long x)
Write a stop bit encoded long
|
Bytes<Void> |
writeStopBitDecimal(double d) |
Bytes<Void> |
writeUnsignedByte(int i) |
Bytes<Void> |
writeUnsignedInt(long i) |
Bytes<Void> |
writeUnsignedInt24(int i) |
Bytes<Void> |
writeUnsignedShort(int u16) |
Bytes<Void> |
writeUtf8(CharSequence cs)
Write the same encoding as
writeUTF with the following changes. |
Bytes<Void> |
writeUtf8(String s) |
Bytes<Void> |
writeUTFΔ(CharSequence cs) |
Bytes<Void> |
writeVolatileByte(long offset,
byte i8) |
Bytes<Void> |
writeVolatileInt(long offset,
int i32) |
Bytes<Void> |
writeVolatileLong(long offset,
long i64) |
Bytes<Void> |
writeVolatileShort(long offset,
short i16) |
void |
writeWithLength(RandomDataInput bytes) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
allocateDirect, allocateDirect, allocateElasticDirect, allocateElasticDirect, bytesForRead, copyTo, copyTo, elasticByteBuffer, elasticByteBuffer, elasticByteBuffer, elasticHeapByteBuffer, from, from, fromHexString, fromString, indexOf, indexOf, indexOf, indexOf, isClear, isEqual, readWrite, realCapacity, safeLimit, sharedMemory, toHexString, toHexString, toString, toString, toString, unchecked, unchecked, unwrite, wrapForRead, wrapForRead, wrapForWrite, wrapForWrite
addAndGetByteNotAtomic, addAndGetDoubleNotAtomic, addAndGetFloatNotAtomic, addAndGetIntNotAtomic, addAndGetLongNotAtomic, addAndGetShortNotAtomic, addAndGetUnsignedByteNotAtomic, addAndGetUnsignedIntNotAtomic, addAndGetUnsignedShortNotAtomic, byteCheckSum, byteCheckSum, bytesForWrite, charAt, checkRefCount, cipher, cipher, contentEquals, empty, endsWith, equalBytes, inside, inside, inside, isEmpty, isPresent, isPresent, length, longCheckSum, nativePointer, startsWith, startsWith, subSequence, to8bitString, toDebugString, toDebugString, wrap, wrap, wrap, writeMaxLong, zeroOut
append, append, write, write, writeBoolean, writeByte, writeOrderedDouble, writeOrderedFloat, writeUnsignedByte, writeUnsignedInt, writeUnsignedShort, writeUtf8, writeUtf8Limited, writeVolatileDouble, writeVolatileFloat
chars, codePoints, toString
bytesMethodReader, bytesMethodReaderBuilder, readObject
addAndGetDouble, addAndGetFloat, addAndGetInt, addAndGetLong, canReadDirect, compareUtf8, copyTo, copyTo, createCharToString, fastHash, findByte, parseLong, peekVolatileInt, printable, read, readBoolean, readIncompleteLong, readUnsignedByte, readUnsignedInt, readUnsignedInt24, readUnsignedShort, readUtf8, readUtf8Limited, readUtf8Limited, readVolatileDouble, readVolatileFloat, subBytes, toByteArray, toTemporaryDirectByteBuffer
inputStream, parseHexLong, parseUTF, parseUtf8, rawReadByte, rawReadInt
bytesMethodWriter, bytesMethodWriterBuilder, writeObject
append, append, append, append, append, append, append, append, append, append, append8bit, append8bit, append8bit, append8bit, append8bit, appendBase, appendBase16, appendBase16, appendDateMillis, appendDecimal, appendTimeMillis, writer
alignBy, appendUtf8, appendUtf8, appendUtf8, appendUtf8, appendUtf8, appendUtf8, canWriteDirect, copyFrom, outputStream, rawWriteByte, rawWriteInt
prepend
public static HexDumpBytes fromText(Reader reader)
public static HexDumpBytes fromText(CharSequence text)
public HexDumpBytes offsetFormat(OffsetFormat offsetFormat)
public int numberWrap()
public HexDumpBytes numberWrap(int numberWrap)
public long readRemaining()
public long writeRemaining()
public long readLimit()
public long writeLimit()
@NotNull public String toHexString()
Bytes
Bytes
from the position() to the limit()toHexString
in interface Bytes<Void>
public boolean retainsComments()
BytesComment
retainsComments
in interface BytesComment<BytesOut<Void>>
public Bytes<Void> comment(CharSequence comment)
BytesComment
comment
in interface BytesComment<BytesOut<Void>>
comment
- to add (or ignore)public BytesOut indent(int n)
BytesComment
indent
in interface BytesComment<BytesOut<Void>>
n
- +1 indent in, -1 reduce indentingpublic BytesStore copy()
public boolean isElastic()
public void ensureCapacity(long size) throws IllegalArgumentException
Bytes
BufferOverflowException
ensureCapacity
in interface Bytes<Void>
size
- the capacity that you requiredIllegalArgumentException
- if the buffer is not elastic and there is not enough space@NotNull public BytesStore bytesStore()
bytesStore
in interface Bytes<Void>
bytesStore
in interface BytesStore<Bytes<Void>,Void>
@NotNull public Bytes compact()
Bytes
@NotNull public Bytes clear()
StreamingCommon
public boolean isDirectMemory()
isDirectMemory
in interface BytesStore<Bytes<Void>,Void>
public long capacity()
capacity
in interface BytesStore<Bytes<Void>,Void>
public long addressForRead(long offset) throws UnsupportedOperationException
offset
- within this buffer. addressForRead(start()) is the actual addressForRead of the first byte.UnsupportedOperationException
- if the underlying buffer is on the heappublic long addressForWrite(long offset) throws UnsupportedOperationException
offset
- within this buffer. addressForRead(start()) is the actual addressForRead of the first byte.UnsupportedOperationException
- if the underlying buffer is on the heappublic long addressForWritePosition() throws UnsupportedOperationException, BufferOverflowException
public boolean compareAndSwapInt(long offset, int expected, int value) throws BufferOverflowException
offset
- to perform CASexpected
- valuevalue
- to setBufferOverflowException
public void testAndSetInt(long offset, int expected, int value)
public boolean compareAndSwapLong(long offset, long expected, long value) throws BufferOverflowException
offset
- to perform CASexpected
- valuevalue
- to setBufferOverflowException
@Nullable public Void underlyingObject()
underlyingObject
in interface BytesStore<Bytes<Void>,Void>
public void move(long from, long to, long length)
move
in interface BytesStore<Bytes<Void>,Void>
public void reserve() throws IllegalStateException
reserve
in interface net.openhft.chronicle.core.ReferenceCounted
IllegalStateException
public void release() throws IllegalStateException
release
in interface net.openhft.chronicle.core.ReferenceCounted
IllegalStateException
public long refCount()
refCount
in interface net.openhft.chronicle.core.ReferenceCounted
public boolean tryReserve()
tryReserve
in interface net.openhft.chronicle.core.ReferenceCounted
@NotNull public Bytes<Void> writeByte(long offset, byte i8) throws BufferOverflowException
RandomDataOutput
writeByte
in interface RandomDataOutput<Bytes<Void>>
offset
- to write toi8
- the valueBufferOverflowException
- if the capacity was exceeded@NotNull public Bytes<Void> writeShort(long offset, short i) throws BufferOverflowException
RandomDataOutput
writeShort
in interface RandomDataOutput<Bytes<Void>>
offset
- to write toi
- the valueBufferOverflowException
- if the capacity was exceeded@NotNull public Bytes<Void> writeInt24(long offset, int i) throws BufferOverflowException
writeInt24
in interface RandomDataOutput<Bytes<Void>>
BufferOverflowException
@NotNull public Bytes<Void> writeInt(long offset, int i) throws BufferOverflowException
RandomDataOutput
writeInt
in interface RandomDataOutput<Bytes<Void>>
offset
- to write toi
- the valueBufferOverflowException
- if the capacity was exceeded@NotNull public Bytes<Void> writeOrderedInt(long offset, int i) throws BufferOverflowException
RandomDataOutput
writeOrderedInt
in interface RandomDataOutput<Bytes<Void>>
offset
- to write toi
- value to writeBufferOverflowException
- if the capacity was exceeded@NotNull public Bytes<Void> writeLong(long offset, long i) throws BufferOverflowException
RandomDataOutput
writeLong
in interface RandomDataOutput<Bytes<Void>>
offset
- to write toi
- the valueBufferOverflowException
- if the capacity was exceeded@NotNull public Bytes<Void> writeOrderedLong(long offset, long i) throws BufferOverflowException
RandomDataOutput
writeOrderedLong
in interface RandomDataOutput<Bytes<Void>>
offset
- to write toi
- value to writeBufferOverflowException
@NotNull public Bytes<Void> writeFloat(long offset, float d) throws BufferOverflowException
RandomDataOutput
writeFloat
in interface RandomDataOutput<Bytes<Void>>
offset
- to write tod
- the valueBufferOverflowException
- if the capacity was exceeded@NotNull public Bytes<Void> writeDouble(long offset, double d) throws BufferOverflowException
RandomDataOutput
writeDouble
in interface RandomDataOutput<Bytes<Void>>
offset
- to write tod
- the valueBufferOverflowException
- if the capacity was exceeded@NotNull public Bytes<Void> writeVolatileByte(long offset, byte i8) throws BufferOverflowException
writeVolatileByte
in interface RandomDataOutput<Bytes<Void>>
BufferOverflowException
@NotNull public Bytes<Void> writeVolatileShort(long offset, short i16) throws BufferOverflowException
writeVolatileShort
in interface RandomDataOutput<Bytes<Void>>
BufferOverflowException
@NotNull public Bytes<Void> writeVolatileInt(long offset, int i32) throws BufferOverflowException
writeVolatileInt
in interface RandomDataOutput<Bytes<Void>>
BufferOverflowException
@NotNull public Bytes<Void> writeVolatileLong(long offset, long i64) throws BufferOverflowException
writeVolatileLong
in interface RandomDataOutput<Bytes<Void>>
BufferOverflowException
@NotNull public Bytes<Void> write(long offsetInRDO, byte[] bytes, int offset, int length) throws BufferOverflowException, IllegalArgumentException
write
in interface RandomDataOutput<Bytes<Void>>
BufferOverflowException
IllegalArgumentException
public void write(long offsetInRDO, ByteBuffer bytes, int offset, int length) throws BufferOverflowException, IllegalArgumentException
write
in interface RandomDataOutput<Bytes<Void>>
BufferOverflowException
IllegalArgumentException
@NotNull public Bytes<Void> write(long writeOffset, RandomDataInput bytes, long readOffset, long length) throws BufferOverflowException, IllegalArgumentException, BufferUnderflowException
write
in interface RandomDataOutput<Bytes<Void>>
BufferOverflowException
IllegalArgumentException
BufferUnderflowException
public void nativeWrite(long address, long position, long size)
RandomDataOutput
nativeWrite
in interface RandomDataOutput<Bytes<Void>>
address
- in native memory to copy fromposition
- in BytesStore to copy tosize
- in bytes@NotNull public Bytes<Void> readPosition(long position) throws BufferUnderflowException
readPosition
in interface StreamingDataInput<Bytes<Void>>
BufferUnderflowException
@NotNull public Bytes<Void> readLimit(long limit) throws BufferUnderflowException
readLimit
in interface StreamingDataInput<Bytes<Void>>
BufferUnderflowException
@NotNull public Bytes<Void> readSkip(long bytesToSkip) throws BufferUnderflowException
StreamingDataInput
readSkip
in interface StreamingDataInput<Bytes<Void>>
bytesToSkip
- bytes to skip.BufferUnderflowException
- if the offset is outside the limits of the Bytespublic void uncheckedReadSkipOne()
StreamingDataInput
uncheckedReadSkipOne
in interface StreamingDataInput<Bytes<Void>>
public void uncheckedReadSkipBackOne()
StreamingDataInput
uncheckedReadSkipBackOne
in interface StreamingDataInput<Bytes<Void>>
public long readStopBit() throws net.openhft.chronicle.core.io.IORuntimeException
readStopBit
in interface StreamingDataInput<Bytes<Void>>
net.openhft.chronicle.core.io.IORuntimeException
public char readStopBitChar() throws net.openhft.chronicle.core.io.IORuntimeException
readStopBitChar
in interface StreamingDataInput<Bytes<Void>>
net.openhft.chronicle.core.io.IORuntimeException
public double readStopBitDouble()
readStopBitDouble
in interface StreamingDataInput<Bytes<Void>>
public double readStopBitDecimal() throws BufferOverflowException
readStopBitDecimal
in interface StreamingDataInput<Bytes<Void>>
BufferOverflowException
public byte readByte()
readByte
in interface StreamingDataInput<Bytes<Void>>
public int readUnsignedByte()
readUnsignedByte
in interface StreamingDataInput<Bytes<Void>>
public int uncheckedReadUnsignedByte()
uncheckedReadUnsignedByte
in interface StreamingDataInput<Bytes<Void>>
public short readShort() throws BufferUnderflowException
readShort
in interface StreamingDataInput<Bytes<Void>>
BufferUnderflowException
public int readInt() throws BufferUnderflowException
readInt
in interface StreamingDataInput<Bytes<Void>>
BufferUnderflowException
public long readLong() throws BufferUnderflowException
readLong
in interface StreamingDataInput<Bytes<Void>>
BufferUnderflowException
public float readFloat() throws BufferUnderflowException
readFloat
in interface StreamingDataInput<Bytes<Void>>
BufferUnderflowException
public double readDouble() throws BufferUnderflowException
readDouble
in interface StreamingDataInput<Bytes<Void>>
BufferUnderflowException
public int readVolatileInt() throws BufferUnderflowException
readVolatileInt
in interface StreamingDataInput<Bytes<Void>>
BufferUnderflowException
public long readVolatileLong() throws BufferUnderflowException
readVolatileLong
in interface StreamingDataInput<Bytes<Void>>
BufferUnderflowException
public int peekUnsignedByte()
peekUnsignedByte
in interface StreamingDataInput<Bytes<Void>>
public void nativeRead(long address, long size) throws BufferUnderflowException
StreamingDataInput
nativeRead
in interface StreamingDataInput<Bytes<Void>>
address
- of the memory.size
- in bytes.BufferUnderflowException
public int lastDecimalPlaces()
public void lastDecimalPlaces(int lastDecimalPlaces)
lastDecimalPlaces
- set the number of decimal places if positive, otherwise 0.@NotNull public BigDecimal readBigDecimal()
readBigDecimal
in interface Bytes<Void>
@NotNull public BigInteger readBigInteger()
readBigInteger
in interface Bytes<Void>
public void readWithLength(long length, @NotNull BytesOut<Void> bytesOut) throws BufferUnderflowException, net.openhft.chronicle.core.io.IORuntimeException
readWithLength
in interface Bytes<Void>
BufferUnderflowException
net.openhft.chronicle.core.io.IORuntimeException
public <T extends ReadBytesMarshallable> T readMarshallableLength16(Class<T> tClass, T object)
readMarshallableLength16
in interface Bytes<Void>
readMarshallableLength16
in interface BytesIn<Void>
@NotNull public Bytes<Void> readPositionUnlimited(long position) throws BufferUnderflowException
readPositionUnlimited
in interface StreamingDataInput<Bytes<Void>>
BufferUnderflowException
@NotNull public Bytes<Void> readPositionRemaining(long position, long remaining) throws BufferUnderflowException
readPositionRemaining
in interface StreamingDataInput<Bytes<Void>>
BufferUnderflowException
public void readWithLength0(long length, @NotNull net.openhft.chronicle.core.util.ThrowingConsumerNonCapturing<Bytes<Void>,net.openhft.chronicle.core.io.IORuntimeException,BytesOut> bytesConsumer, StringBuilder sb, BytesOut toBytes) throws BufferUnderflowException, net.openhft.chronicle.core.io.IORuntimeException
StreamingDataInput
readWithLength0
in interface StreamingDataInput<Bytes<Void>>
BufferUnderflowException
net.openhft.chronicle.core.io.IORuntimeException
public void readWithLength(long length, @NotNull net.openhft.chronicle.core.util.ThrowingConsumer<Bytes<Void>,net.openhft.chronicle.core.io.IORuntimeException> bytesConsumer) throws BufferUnderflowException, net.openhft.chronicle.core.io.IORuntimeException
StreamingDataInput
readWithLength
in interface StreamingDataInput<Bytes<Void>>
BufferUnderflowException
net.openhft.chronicle.core.io.IORuntimeException
public boolean readBoolean()
readBoolean
in interface StreamingDataInput<Bytes<Void>>
public int readUnsignedShort() throws BufferUnderflowException
readUnsignedShort
in interface StreamingDataInput<Bytes<Void>>
BufferUnderflowException
public int readInt24() throws BufferUnderflowException
readInt24
in interface StreamingDataInput<Bytes<Void>>
BufferUnderflowException
public int readUnsignedInt24() throws BufferUnderflowException
readUnsignedInt24
in interface StreamingDataInput<Bytes<Void>>
BufferUnderflowException
public long readUnsignedInt() throws BufferUnderflowException
readUnsignedInt
in interface StreamingDataInput<Bytes<Void>>
BufferUnderflowException
@Nullable public String readUtf8() throws BufferUnderflowException, net.openhft.chronicle.core.io.IORuntimeException, IllegalArgumentException
StreamingDataInput
null
values are also supportedreadUtf8
in interface StreamingDataInput<Bytes<Void>>
null
if writeUtf8(null)
was calledBufferUnderflowException
net.openhft.chronicle.core.io.IORuntimeException
IllegalArgumentException
@Nullable public String readUTFΔ() throws net.openhft.chronicle.core.io.IORuntimeException, BufferUnderflowException, IllegalArgumentException
readUTFΔ
in interface StreamingDataInput<Bytes<Void>>
net.openhft.chronicle.core.io.IORuntimeException
BufferUnderflowException
IllegalArgumentException
@Nullable public String read8bit() throws net.openhft.chronicle.core.io.IORuntimeException, BufferUnderflowException
read8bit
in interface StreamingDataInput<Bytes<Void>>
net.openhft.chronicle.core.io.IORuntimeException
BufferUnderflowException
public <ACS extends Appendable & CharSequence> boolean readUtf8(@NotNull ACS sb) throws net.openhft.chronicle.core.io.IORuntimeException, IllegalArgumentException, BufferUnderflowException
StreamingDataInput
readUtf8
in interface StreamingDataInput<Bytes<Void>>
sb
- to copy chars totrue
if there was a String, or false
if it was null
net.openhft.chronicle.core.io.IORuntimeException
IllegalArgumentException
BufferUnderflowException
public <ACS extends Appendable & CharSequence> boolean readUTFΔ(@NotNull ACS sb) throws net.openhft.chronicle.core.io.IORuntimeException, IllegalArgumentException, BufferUnderflowException
readUTFΔ
in interface StreamingDataInput<Bytes<Void>>
net.openhft.chronicle.core.io.IORuntimeException
IllegalArgumentException
BufferUnderflowException
public boolean read8bit(@NotNull Bytes b) throws BufferUnderflowException, IllegalStateException, BufferOverflowException
read8bit
in interface StreamingDataInput<Bytes<Void>>
BufferUnderflowException
IllegalStateException
BufferOverflowException
public <ACS extends Appendable & CharSequence> boolean read8bit(@NotNull ACS sb) throws net.openhft.chronicle.core.io.IORuntimeException, IllegalArgumentException, BufferUnderflowException
read8bit
in interface StreamingDataInput<Bytes<Void>>
net.openhft.chronicle.core.io.IORuntimeException
IllegalArgumentException
BufferUnderflowException
public boolean read8bit(@NotNull StringBuilder sb) throws net.openhft.chronicle.core.io.IORuntimeException, BufferUnderflowException
read8bit
in interface StreamingDataInput<Bytes<Void>>
net.openhft.chronicle.core.io.IORuntimeException
BufferUnderflowException
public int read(@NotNull byte[] bytes)
read
in interface StreamingDataInput<Bytes<Void>>
public int read(@NotNull byte[] bytes, int off, int len)
read
in interface StreamingDataInput<Bytes<Void>>
public int read(@NotNull char[] bytes, int off, int len)
read
in interface StreamingDataInput<Bytes<Void>>
public void read(@NotNull ByteBuffer buffer)
read
in interface StreamingDataInput<Bytes<Void>>
public void read(@NotNull Bytes bytes, int length)
read
in interface StreamingDataInput<Bytes<Void>>
@NotNull public <E extends Enum<E>> E readEnum(@NotNull Class<E> eClass) throws net.openhft.chronicle.core.io.IORuntimeException, BufferUnderflowException
readEnum
in interface StreamingDataInput<Bytes<Void>>
net.openhft.chronicle.core.io.IORuntimeException
BufferUnderflowException
public void readHistogram(@NotNull net.openhft.chronicle.core.util.Histogram histogram)
readHistogram
in interface StreamingDataInput<Bytes<Void>>
public void readWithLength(Bytes bytes)
readWithLength
in interface StreamingDataInput<Bytes<Void>>
@NotNull public Bytes<Void> writePosition(long position) throws BufferOverflowException
writePosition
in interface StreamingDataOutput<Bytes<Void>>
BufferOverflowException
@NotNull public Bytes<Void> writeLimit(long limit) throws BufferOverflowException
writeLimit
in interface StreamingDataOutput<Bytes<Void>>
BufferOverflowException
@NotNull public Bytes<Void> writeSkip(long bytesToSkip) throws BufferOverflowException
StreamingDataOutput
writeSkip
in interface StreamingDataOutput<Bytes<Void>>
bytesToSkip
- bytes to skip.BufferOverflowException
- if the offset is outside the limits of the Bytes@NotNull public Bytes<Void> writeByte(byte i8) throws BufferOverflowException
writeByte
in interface StreamingDataOutput<Bytes<Void>>
BufferOverflowException
public long writePosition()
@NotNull public Bytes<Void> writeShort(short i16) throws BufferOverflowException
writeShort
in interface StreamingDataOutput<Bytes<Void>>
BufferOverflowException
@NotNull public Bytes<Void> writeInt(int i) throws BufferOverflowException
writeInt
in interface StreamingDataOutput<Bytes<Void>>
BufferOverflowException
@NotNull public Bytes<Void> writeIntAdv(int i, int advance) throws BufferOverflowException
writeIntAdv
in interface StreamingDataOutput<Bytes<Void>>
BufferOverflowException
@NotNull public Bytes<Void> writeLong(long i64) throws BufferOverflowException
writeLong
in interface StreamingDataOutput<Bytes<Void>>
BufferOverflowException
@NotNull public Bytes<Void> writeLongAdv(long i64, int advance) throws BufferOverflowException
writeLongAdv
in interface StreamingDataOutput<Bytes<Void>>
BufferOverflowException
@NotNull public Bytes<Void> writeFloat(float f) throws BufferOverflowException
writeFloat
in interface StreamingDataOutput<Bytes<Void>>
BufferOverflowException
@NotNull public Bytes<Void> writeDouble(double d) throws BufferOverflowException
writeDouble
in interface StreamingDataOutput<Bytes<Void>>
BufferOverflowException
@NotNull public Bytes<Void> writeDoubleAndInt(double d, int i) throws BufferOverflowException
writeDoubleAndInt
in interface StreamingDataOutput<Bytes<Void>>
BufferOverflowException
public long realWriteRemaining()
realWriteRemaining
in interface StreamingDataOutput<Bytes<Void>>
@NotNull public Bytes<Void> write(byte[] bytes, int offset, int length) throws BufferOverflowException, IllegalArgumentException
StreamingDataOutput
write
in interface StreamingDataOutput<Bytes<Void>>
BufferOverflowException
IllegalArgumentException
@NotNull public Bytes<Void> writeSome(ByteBuffer buffer) throws BufferOverflowException
writeSome
in interface StreamingDataOutput<Bytes<Void>>
BufferOverflowException
@NotNull public Bytes<Void> writeOrderedInt(int i) throws BufferOverflowException
writeOrderedInt
in interface StreamingDataOutput<Bytes<Void>>
BufferOverflowException
@NotNull public Bytes<Void> writeOrderedLong(long i) throws BufferOverflowException
writeOrderedLong
in interface StreamingDataOutput<Bytes<Void>>
BufferOverflowException
public void nativeWrite(long address, long size) throws BufferOverflowException
StreamingDataOutput
nativeWrite
in interface StreamingDataOutput<Bytes<Void>>
address
- to write to.size
- in bytes.BufferOverflowException
@NotNull public Bytes<Void> clearAndPad(long length) throws BufferOverflowException
BytesPrepender
clearAndPad
in interface BytesPrepender<Bytes<Void>>
length
- to padBufferOverflowException
- if the length > capacity() - start()@NotNull public Bytes<Void> prewrite(byte[] bytes)
BytesPrepender
Note: it moves the readPosition not the writePosition / readLimit
prewrite
in interface BytesPrepender<Bytes<Void>>
bytes
- to prepend to.@NotNull public Bytes<Void> prewrite(BytesStore bytes)
BytesPrepender
Note: it moves the readPosition not the writePosition / readLimit
prewrite
in interface BytesPrepender<Bytes<Void>>
bytes
- to prepend to.@NotNull public Bytes<Void> prewriteByte(byte b)
BytesPrepender
Note: it moves the readPosition not the writePosition / readLimit
prewriteByte
in interface BytesPrepender<Bytes<Void>>
b
- byte to prepend to.@NotNull public Bytes<Void> prewriteShort(short i)
BytesPrepender
Note: it moves the readPosition not the writePosition / readLimit
prewriteShort
in interface BytesPrepender<Bytes<Void>>
i
- short to prepend to.@NotNull public Bytes<Void> prewriteInt(int i)
BytesPrepender
Note: it moves the readPosition not the writePosition / readLimit
prewriteInt
in interface BytesPrepender<Bytes<Void>>
i
- integer to prepend to.@NotNull public Bytes<Void> prewriteLong(long l)
BytesPrepender
Note: it moves the readPosition not the writePosition / readLimit
prewriteLong
in interface BytesPrepender<Bytes<Void>>
l
- long to prepend to.public byte readByte(long offset) throws BufferUnderflowException
RandomDataInput
readByte
in interface RandomDataInput
offset
- to readBufferUnderflowException
- if the offset is outside the limits of the Bytespublic int peekUnsignedByte(long offset)
RandomDataInput
peekUnsignedByte
in interface RandomDataInput
offset
- to readpublic short readShort(long offset) throws BufferUnderflowException
RandomDataInput
readShort
in interface RandomDataInput
offset
- to readBufferUnderflowException
- if the offset is outside the limits of the Bytespublic int readInt(long offset) throws BufferUnderflowException
RandomDataInput
readInt
in interface RandomDataInput
offset
- to readBufferUnderflowException
- if the offset is outside the limits of the Bytespublic long readLong(long offset) throws BufferUnderflowException
RandomDataInput
readLong
in interface RandomDataInput
offset
- to readBufferUnderflowException
- if the offset is outside the limits of the Bytespublic float readFloat(long offset) throws BufferUnderflowException
RandomDataInput
readFloat
in interface RandomDataInput
offset
- to readBufferUnderflowException
- if the offset is outside the limits of the Bytespublic double readDouble(long offset) throws BufferUnderflowException
RandomDataInput
readDouble
in interface RandomDataInput
offset
- to readBufferUnderflowException
- if the offset is outside the limits of the Bytespublic byte readVolatileByte(long offset) throws BufferUnderflowException
RandomDataInput
readVolatileByte
in interface RandomDataInput
offset
- to readBufferUnderflowException
- if the offset is outside the limits of the Bytespublic short readVolatileShort(long offset) throws BufferUnderflowException
RandomDataInput
readVolatileShort
in interface RandomDataInput
offset
- to readBufferUnderflowException
- if the offset is outside the limits of the Bytespublic int readVolatileInt(long offset) throws BufferUnderflowException
RandomDataInput
readVolatileInt
in interface RandomDataInput
offset
- to readBufferUnderflowException
- if the offset is outside the limits of the Bytespublic long readVolatileLong(long offset) throws BufferUnderflowException
RandomDataInput
readVolatileLong
in interface RandomDataInput
offset
- to readBufferUnderflowException
- if the offset is outside the limits of the Bytespublic void nativeRead(long position, long address, long size) throws BufferUnderflowException
RandomDataInput
nativeRead
in interface RandomDataInput
position
- within the ByteStore to copy.address
- in native memorysize
- in bytesBufferUnderflowException
- if the offset is outside the limits of the Bytespublic long readPosition()
public void lenient(boolean lenient)
StreamingDataInput
lenient
in interface StreamingDataInput<Bytes<Void>>
lenient
- if true, return nothing rather than error.public boolean lenient()
lenient
in interface StreamingDataInput<Bytes<Void>>
public void writeMarshallableLength16(WriteBytesMarshallable marshallable)
writeMarshallableLength16
in interface Bytes<Void>
writeMarshallableLength16
in interface BytesOut<Void>
public Bytes write(InputStream inputStream) throws IOException
write
in interface Bytes<Void>
IOException
@NotNull public Bytes<Void> writeStopBit(long x) throws BufferOverflowException
StreamingDataOutput
writeStopBit
in interface StreamingDataOutput<Bytes<Void>>
x
- long to writeBufferOverflowException
@NotNull public Bytes<Void> writeStopBit(char x) throws BufferOverflowException
writeStopBit
in interface StreamingDataOutput<Bytes<Void>>
BufferOverflowException
@NotNull public Bytes<Void> writeStopBit(double d) throws BufferOverflowException
writeStopBit
in interface StreamingDataOutput<Bytes<Void>>
BufferOverflowException
@NotNull public Bytes<Void> writeStopBitDecimal(double d) throws BufferOverflowException
writeStopBitDecimal
in interface StreamingDataOutput<Bytes<Void>>
BufferOverflowException
@NotNull public Bytes<Void> writeUtf8(CharSequence cs) throws BufferOverflowException
StreamingDataOutput
writeUTF
with the following changes. 1) The length is stop bit encoded
i.e. one byte longer for short strings, but is not limited in length. 2) The string can be null.writeUtf8
in interface StreamingDataOutput<Bytes<Void>>
cs
- the string value to be written. Can be null.BufferOverflowException
- if there is not enough space left@NotNull public Bytes<Void> writeUtf8(String s) throws BufferOverflowException
writeUtf8
in interface StreamingDataOutput<Bytes<Void>>
BufferOverflowException
@NotNull public Bytes<Void> writeUTFΔ(CharSequence cs) throws BufferOverflowException
writeUTFΔ
in interface StreamingDataOutput<Bytes<Void>>
BufferOverflowException
@NotNull public Bytes<Void> write8bit(@Nullable CharSequence cs) throws BufferOverflowException
write8bit
in interface StreamingDataOutput<Bytes<Void>>
BufferOverflowException
@NotNull public Bytes<Void> write8bit(@NotNull CharSequence s, int start, int length) throws BufferOverflowException, IllegalArgumentException, IndexOutOfBoundsException
write8bit
in interface StreamingDataOutput<Bytes<Void>>
BufferOverflowException
IllegalArgumentException
IndexOutOfBoundsException
@NotNull public Bytes<Void> write(CharSequence cs) throws BufferOverflowException, BufferUnderflowException, IllegalArgumentException
write
in interface StreamingDataOutput<Bytes<Void>>
BufferOverflowException
BufferUnderflowException
IllegalArgumentException
@NotNull public Bytes<Void> write(@NotNull CharSequence s, int start, int length) throws BufferOverflowException, IllegalArgumentException, IndexOutOfBoundsException
write
in interface StreamingDataOutput<Bytes<Void>>
BufferOverflowException
IllegalArgumentException
IndexOutOfBoundsException
@NotNull public Bytes<Void> write8bit(@Nullable String s) throws BufferOverflowException
write8bit
in interface StreamingDataOutput<Bytes<Void>>
BufferOverflowException
@NotNull public Bytes<Void> write8bit(@Nullable BytesStore bs) throws BufferOverflowException
write8bit
in interface StreamingDataOutput<Bytes<Void>>
BufferOverflowException
@NotNull public Bytes<Void> writeUnsignedByte(int i) throws BufferOverflowException, IllegalArgumentException
writeUnsignedByte
in interface StreamingDataOutput<Bytes<Void>>
BufferOverflowException
IllegalArgumentException
@NotNull public Bytes<Void> writeUnsignedShort(int u16) throws BufferOverflowException, IllegalArgumentException
writeUnsignedShort
in interface StreamingDataOutput<Bytes<Void>>
BufferOverflowException
IllegalArgumentException
@NotNull public Bytes<Void> writeInt24(int i) throws BufferOverflowException
writeInt24
in interface StreamingDataOutput<Bytes<Void>>
BufferOverflowException
@NotNull public Bytes<Void> writeUnsignedInt24(int i) throws BufferOverflowException
writeUnsignedInt24
in interface StreamingDataOutput<Bytes<Void>>
BufferOverflowException
@NotNull public Bytes<Void> writeUnsignedInt(long i) throws BufferOverflowException, IllegalArgumentException
writeUnsignedInt
in interface StreamingDataOutput<Bytes<Void>>
BufferOverflowException
IllegalArgumentException
@NotNull public Bytes<Void> write(@NotNull RandomDataInput bytes)
StreamingDataOutput
write
in interface StreamingDataOutput<Bytes<Void>>
public Bytes<Void> write(@NotNull BytesStore bytes)
write
in interface StreamingDataOutput<Bytes<Void>>
@NotNull public Bytes<Void> writeSome(@NotNull Bytes bytes)
writeSome
in interface StreamingDataOutput<Bytes<Void>>
@NotNull public Bytes<Void> write(@NotNull RandomDataInput bytes, long offset, long length) throws BufferOverflowException, BufferUnderflowException
StreamingDataOutput
write
in interface StreamingDataOutput<Bytes<Void>>
BufferOverflowException
BufferUnderflowException
@NotNull public Bytes<Void> write(@NotNull BytesStore bytes, long offset, long length) throws BufferOverflowException, BufferUnderflowException
StreamingDataOutput
write
in interface StreamingDataOutput<Bytes<Void>>
BufferOverflowException
BufferUnderflowException
@NotNull public Bytes<Void> write(@NotNull byte[] bytes) throws BufferOverflowException
write
in interface StreamingDataOutput<Bytes<Void>>
BufferOverflowException
@NotNull public Bytes<Void> writeBoolean(boolean flag) throws BufferOverflowException
writeBoolean
in interface StreamingDataOutput<Bytes<Void>>
BufferOverflowException
public <E extends Enum<E>> Bytes<Void> writeEnum(@NotNull E e) throws BufferOverflowException
writeEnum
in interface StreamingDataOutput<Bytes<Void>>
BufferOverflowException
public void writePositionRemaining(long position, long length)
writePositionRemaining
in interface StreamingDataOutput<Bytes<Void>>
public void writeHistogram(@NotNull net.openhft.chronicle.core.util.Histogram histogram)
writeHistogram
in interface StreamingDataOutput<Bytes<Void>>
public void writeBigDecimal(@NotNull BigDecimal bd)
writeBigDecimal
in interface StreamingDataOutput<Bytes<Void>>
public void writeBigInteger(@NotNull BigInteger bi)
writeBigInteger
in interface StreamingDataOutput<Bytes<Void>>
public void writeWithLength(RandomDataInput bytes)
writeWithLength
in interface StreamingDataOutput<Bytes<Void>>
@NotNull public Reader reader()
@Nullable public Boolean parseBoolean(@NotNull StopCharTester tester)
false: f, false, n, no, 0
true: t, true, y, yes, 1
tester
- to detect the end of the text.@Nullable public Boolean parseBoolean()
@NotNull public String parseUtf8(@NotNull StopCharTester stopCharTester)
stopCharTester
- to check if the end has been reached.@NotNull @Deprecated public String parseUTF(@NotNull StopCharTester stopCharTester)
public void parseUtf8(@NotNull Appendable buffer, @NotNull StopCharTester stopCharTester) throws BufferUnderflowException
buffer
- to populatestopCharTester
- to check if the end has been reached.BufferUnderflowException
@Deprecated public void parseUTF(@NotNull Appendable buffer, @NotNull StopCharTester stopCharTester) throws BufferUnderflowException
BufferUnderflowException
public void parseUtf8(@NotNull Appendable buffer, @NotNull StopCharsTester stopCharsTester) throws BufferUnderflowException, net.openhft.chronicle.core.io.IORuntimeException
buffer
- to populatestopCharsTester
- to check if the end has been reached.BufferUnderflowException
net.openhft.chronicle.core.io.IORuntimeException
@Deprecated public void parseUTF(@NotNull Appendable buffer, @NotNull StopCharsTester stopCharsTester) throws BufferUnderflowException, net.openhft.chronicle.core.io.IORuntimeException
BufferUnderflowException
net.openhft.chronicle.core.io.IORuntimeException
public void parse8bit(Appendable buffer, @NotNull StopCharTester stopCharTester) throws BufferUnderflowException
buffer
- to populatestopCharTester
- to check if the end has been reached.BufferUnderflowException
public String parse8bit(@NotNull StopCharTester stopCharTester) throws BufferUnderflowException
stopCharTester
- to check if the end has been reached.BufferUnderflowException
public void parse8bit(Appendable buffer, @NotNull StopCharsTester stopCharsTester) throws BufferUnderflowException
buffer
- to populatestopCharsTester
- to check if the end has been reached.BufferUnderflowException
public void parse8bit(Bytes buffer, @NotNull StopCharsTester stopCharsTester) throws BufferUnderflowException
BufferUnderflowException
public void parse8bit(StringBuilder buffer, @NotNull StopCharsTester stopCharsTester) throws BufferUnderflowException
BufferUnderflowException
public int parseInt() throws BufferUnderflowException
BufferUnderflowException
public long parseLong() throws BufferUnderflowException
BufferUnderflowException
public float parseFloat() throws BufferUnderflowException
The number of decimal places can be retrieved with lastDecimalPlaces()
BufferUnderflowException
public double parseDouble() throws BufferUnderflowException
The number of decimal places can be retrieved with lastDecimalPlaces()
BufferUnderflowException
public long parseLongDecimal() throws BufferUnderflowException
The number of decimal places can be retrieved with lastDecimalPlaces()
BufferUnderflowException
public boolean skipTo(@NotNull StopCharTester tester)
tester
- to stop at@NotNull public BigDecimal parseBigDecimal()
Copyright © 2019. All rights reserved.