public interface Buf
| Modifier and Type | Field and Description |
|---|---|
static IncompleteReadException |
INCOMPLETE_READ |
| Modifier and Type | Method and Description |
|---|---|
void |
append(byte value) |
void |
append(byte[] bytes) |
void |
append(byte[] bytes,
int offset,
int length) |
void |
append(ByteBuffer wrap) |
long |
append(ReadableByteChannel channel) |
long |
append(String s) |
OutputStream |
asOutputStream() |
String |
asText() |
void |
back(long count) |
ByteBuffer |
bufAt(int index) |
int |
bufCount() |
int |
bufferIndexOf(long position) |
int |
bufferOffsetOf(long position) |
Bytes |
bytes() |
long |
checkpoint() |
void |
checkpoint(long position) |
void |
clear() |
String |
data() |
void |
deleteAfter(long position) |
void |
deleteBefore(long position) |
void |
deleteLast(long count) |
ByteBuffer |
exposed() |
ByteBuffer |
first() |
byte |
get(long position) |
String |
get(Range range) |
void |
get(Range range,
byte[] dest,
int offset) |
byte[] |
getBytes(Range range) |
long |
getN(Range range) |
ByteBuffer |
getSingle() |
boolean |
hasRemaining() |
boolean |
isSingle() |
long |
limit() |
void |
limit(long limit) |
byte |
next() |
byte |
peek() |
long |
position() |
void |
position(long position) |
void |
put(long position,
byte value) |
void |
put(long position,
byte[] bytes,
int offset,
int length) |
long |
putNumAsText(long position,
long num,
boolean forward) |
String |
readLn() |
String |
readN(long count) |
byte[] |
readNbytes(int count) |
long |
remaining() |
void |
scanLn(Range range) |
void |
scanLnLn(Ranges ranges) |
void |
scanLnLn(Ranges ranges,
org.rapidoid.wrap.LongWrap result,
byte end1,
byte end2) |
void |
scanN(long count,
Range range) |
long |
scanTo(byte sep1,
byte sep2,
Range range,
boolean failOnLimit) |
void |
scanTo(byte sep,
Range range,
boolean failOnLimit) |
void |
scanUntil(byte value,
Range range) |
void |
scanWhile(byte value,
Range range) |
void |
setReadOnly(boolean readOnly) |
long |
size() |
void |
skip(long count) |
int |
unitCount() |
int |
unitSize() |
void |
upto(byte value,
Range range) |
long |
writeTo(ByteBuffer buffer) |
long |
writeTo(WritableByteChannel channel) |
static final IncompleteReadException INCOMPLETE_READ
byte get(long position)
void put(long position,
byte value)
void append(byte value)
void put(long position,
byte[] bytes,
int offset,
int length)
long size()
void append(ByteBuffer wrap)
long append(ReadableByteChannel channel) throws IOException
IOExceptionlong append(String s)
void append(byte[] bytes)
void append(byte[] bytes,
int offset,
int length)
String data()
long writeTo(WritableByteChannel channel) throws IOException
IOExceptionlong writeTo(ByteBuffer buffer)
void deleteBefore(long position)
void deleteAfter(long position)
void deleteLast(long count)
int unitCount()
int unitSize()
void clear()
byte[] getBytes(Range range)
long getN(Range range)
boolean isSingle()
ByteBuffer getSingle()
ByteBuffer first()
long putNumAsText(long position,
long num,
boolean forward)
void get(Range range, byte[] dest, int offset)
byte next()
void back(long count)
byte peek()
boolean hasRemaining()
long remaining()
long position()
long limit()
void position(long position)
void limit(long limit)
void upto(byte value,
Range range)
ByteBuffer exposed()
void scanUntil(byte value,
Range range)
void scanWhile(byte value,
Range range)
void skip(long count)
ByteBuffer bufAt(int index)
int bufCount()
int bufferIndexOf(long position)
int bufferOffsetOf(long position)
OutputStream asOutputStream()
String asText()
Bytes bytes()
void scanLn(Range range)
void scanLnLn(Ranges ranges)
void scanN(long count,
Range range)
String readLn()
String readN(long count)
byte[] readNbytes(int count)
void scanTo(byte sep,
Range range,
boolean failOnLimit)
long scanTo(byte sep1,
byte sep2,
Range range,
boolean failOnLimit)
void scanLnLn(Ranges ranges, org.rapidoid.wrap.LongWrap result, byte end1, byte end2)
void setReadOnly(boolean readOnly)
void checkpoint(long position)
long checkpoint()
Copyright © 2014–2015 Nikolche Mihajlovski and contributors. All rights reserved.