@Authors(value="Nikolche Mihajlovski")
@Since(value="2.0.0")
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(ByteArrayOutputStream src) |
void |
append(ByteBuffer wrap) |
int |
append(ReadableByteChannel channel) |
int |
append(String s) |
OutputStream |
asOutputStream() |
String |
asText() |
void |
back(int count) |
ByteBuffer |
bufAt(int index) |
int |
bufCount() |
int |
bufferIndexOf(int position) |
int |
bufferOffsetOf(int position) |
Bytes |
bytes() |
int |
checkpoint() |
void |
checkpoint(int checkpoint) |
void |
clear() |
String |
data() |
void |
deleteAfter(int position) |
void |
deleteBefore(int position) |
void |
deleteLast(int count) |
ByteBuffer |
exposed() |
ByteBuffer |
first() |
String |
get(BufRange range) |
void |
get(BufRange range,
byte[] dest,
int offset) |
byte |
get(int position) |
long |
getN(BufRange range) |
ByteBuffer |
getSingle() |
boolean |
hasRemaining() |
boolean |
isSingle() |
int |
limit() |
void |
limit(int limit) |
byte |
next() |
byte |
peek() |
int |
position() |
void |
position(int position) |
void |
put(int position,
byte value) |
void |
put(int position,
byte[] bytes,
int offset,
int length) |
int |
putNumAsText(int position,
long num,
boolean forward) |
String |
readLn() |
String |
readN(int count) |
byte[] |
readNbytes(int count) |
int |
remaining() |
void |
scanLn(BufRange range) |
void |
scanLnLn(BufRanges ranges) |
void |
scanLnLn(BufRanges ranges,
org.rapidoid.wrap.IntWrap result,
byte end1,
byte end2) |
void |
scanN(int count,
BufRange range) |
void |
scanTo(byte sep,
BufRange range,
boolean failOnLimit) |
int |
scanTo(byte sep1,
byte sep2,
BufRange range,
boolean failOnLimit) |
void |
scanUntil(byte value,
BufRange range) |
void |
scanWhile(byte value,
BufRange range) |
void |
setReadOnly(boolean readOnly) |
int |
size() |
void |
skip(int count) |
int |
unitCount() |
int |
unitSize() |
Buf |
unwrap() |
void |
upto(byte value,
BufRange range) |
void |
write(byte[] src,
int offset,
int length) |
void |
write(int byteValue) |
int |
writeTo(ByteBuffer buffer) |
int |
writeTo(ByteBuffer buffer,
int srcOffset,
int length) |
int |
writeTo(WritableByteChannel channel) |
int |
writeTo(WritableByteChannel channel,
int srcOffset,
int length) |
static final IncompleteReadException INCOMPLETE_READ
byte get(int position)
void put(int position,
byte value)
void append(byte value)
void put(int position,
byte[] bytes,
int offset,
int length)
int size()
void append(ByteBuffer wrap)
int append(ReadableByteChannel channel) throws IOException
IOExceptionint append(String s)
void append(byte[] bytes)
void append(byte[] bytes,
int offset,
int length)
void append(ByteArrayOutputStream src)
String data()
int writeTo(WritableByteChannel channel) throws IOException
IOExceptionint writeTo(WritableByteChannel channel, int srcOffset, int length) throws IOException
IOExceptionint writeTo(ByteBuffer buffer)
int writeTo(ByteBuffer buffer, int srcOffset, int length)
void deleteBefore(int position)
void deleteAfter(int position)
void deleteLast(int count)
int unitCount()
int unitSize()
void clear()
long getN(BufRange range)
boolean isSingle()
ByteBuffer getSingle()
ByteBuffer first()
int putNumAsText(int position,
long num,
boolean forward)
void get(BufRange range, byte[] dest, int offset)
byte next()
void back(int count)
byte peek()
boolean hasRemaining()
int remaining()
int position()
int limit()
void position(int position)
void limit(int limit)
void upto(byte value,
BufRange range)
ByteBuffer exposed()
void scanUntil(byte value,
BufRange range)
void scanWhile(byte value,
BufRange range)
void skip(int count)
ByteBuffer bufAt(int index)
int bufCount()
int bufferIndexOf(int position)
int bufferOffsetOf(int position)
OutputStream asOutputStream()
String asText()
Bytes bytes()
void scanLn(BufRange range)
void scanLnLn(BufRanges ranges)
void scanN(int count,
BufRange range)
String readLn()
String readN(int count)
byte[] readNbytes(int count)
void scanTo(byte sep,
BufRange range,
boolean failOnLimit)
int scanTo(byte sep1,
byte sep2,
BufRange range,
boolean failOnLimit)
void scanLnLn(BufRanges ranges, org.rapidoid.wrap.IntWrap result, byte end1, byte end2)
void setReadOnly(boolean readOnly)
int checkpoint()
void checkpoint(int checkpoint)
void write(int byteValue)
throws IOException
IOExceptionvoid write(byte[] src,
int offset,
int length)
throws IOException
IOExceptionBuf unwrap()
Copyright © 2014–2017 Nikolche Mihajlovski and contributors. All rights reserved.