INCOMPLETE_READ| Constructor and Description |
|---|
SynchronizedBuf(Buf buf) |
| 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 checkpoint) |
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) |
public SynchronizedBuf(Buf buf)
public void put(long position,
byte[] bytes,
int offset,
int length)
public void append(ByteBuffer wrap)
public long append(ReadableByteChannel channel) throws IOException
append in interface BufIOExceptionpublic void append(byte[] bytes,
int offset,
int length)
public long writeTo(WritableByteChannel channel) throws IOException
writeTo in interface BufIOExceptionpublic long writeTo(ByteBuffer buffer)
public void deleteBefore(long position)
deleteBefore in interface Bufpublic void deleteAfter(long position)
deleteAfter in interface Bufpublic void deleteLast(long count)
deleteLast in interface Bufpublic ByteBuffer getSingle()
public ByteBuffer first()
public long putNumAsText(long position,
long num,
boolean forward)
putNumAsText in interface Bufpublic boolean hasRemaining()
hasRemaining in interface Bufpublic ByteBuffer exposed()
public ByteBuffer bufAt(int index)
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.