INCOMPLETE_READ| Constructor and Description |
|---|
MultiBuf(org.rapidoid.pool.Pool<ByteBuffer> bufPool,
int factor,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
append(byte value) |
void |
append(byte[] bytes) |
void |
append(byte[] src,
int offset,
int length) |
void |
append(ByteBuffer src) |
long |
append(ReadableByteChannel channel)
Reads data from the channel and appends it to the buffer.
|
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 checkpoint) |
void |
clear() |
String |
data() |
void |
deleteAfter(long position) |
void |
deleteBefore(long count) |
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 n,
boolean forward) |
String |
readLn() |
String |
readN(long count) |
byte[] |
readNbytes(int count) |
long |
remaining() |
void |
scanLn(Range line) |
void |
scanLnLn(Ranges lines) |
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) |
String |
toString() |
int |
unitCount() |
int |
unitSize() |
void |
upto(byte value,
Range range) |
long |
writeTo(ByteBuffer buffer) |
long |
writeTo(WritableByteChannel channel) |
public MultiBuf(org.rapidoid.pool.Pool<ByteBuffer> bufPool, int factor, String name)
public long append(ReadableByteChannel channel) throws IOException
append in interface BufIOExceptionpublic void append(ByteBuffer src)
public ByteBuffer first()
public ByteBuffer bufAt(int index)
public long writeTo(WritableByteChannel channel) throws IOException
writeTo in interface BufIOExceptionpublic long writeTo(ByteBuffer buffer)
public void deleteBefore(long count)
deleteBefore in interface Bufpublic void put(long position,
byte[] bytes,
int offset,
int length)
public void deleteAfter(long position)
deleteAfter in interface Bufpublic void deleteLast(long count)
deleteLast in interface Bufpublic ByteBuffer getSingle()
public long putNumAsText(long position,
long n,
boolean forward)
putNumAsText in interface Bufpublic boolean hasRemaining()
hasRemaining in interface Bufpublic ByteBuffer exposed()
public int bufferIndexOf(long position)
bufferIndexOf in interface Bufpublic int bufferOffsetOf(long position)
bufferOffsetOf in interface Bufpublic OutputStream asOutputStream()
asOutputStream in interface Bufpublic byte[] readNbytes(int count)
readNbytes in interface Bufpublic void scanTo(byte sep,
Range range,
boolean failOnLimit)
public long scanTo(byte sep1,
byte sep2,
Range range,
boolean failOnLimit)
public void scanLnLn(Ranges ranges, org.rapidoid.wrap.LongWrap result, byte end1, byte end2)
public void setReadOnly(boolean readOnly)
setReadOnly in interface Bufpublic long checkpoint()
checkpoint in interface Bufpublic void checkpoint(long checkpoint)
checkpoint in interface BufCopyright © 2014–2015 Nikolche Mihajlovski and contributors. All rights reserved.