public class DefaultNByteQueue extends Object implements NByteQueue
| Constructor and Description |
|---|
DefaultNByteQueue() |
DefaultNByteQueue(byte[] data,
int initial,
int increment) |
DefaultNByteQueue(int initial) |
DefaultNByteQueue(int initial,
int increment) |
| Modifier and Type | Method and Description |
|---|---|
int |
allocatedSize() |
byte |
byteAt(int index) |
IntStream |
bytes() |
boolean |
canRead() |
boolean |
canReadByCount(int count) |
void |
clear() |
void |
ensureAvailable(int z) |
void |
eof(boolean eof) |
int |
from() |
boolean |
hasNext() |
int |
increment() |
boolean |
isEmpty() |
boolean |
isEOF() |
int |
length() |
static NByteQueue |
of() |
static NByteQueue |
of(byte[] content) |
static NByteQueue |
of(int size) |
byte |
peek() |
String |
peek(int count) |
byte |
peekAt(int index) |
byte |
read() |
String |
read(int count) |
void |
skip(int count) |
NMatchType |
skipValue(String value) |
int |
to() |
String |
toString() |
void |
write(byte c) |
void |
write(byte[] c) |
void |
write(byte[] c,
int offset,
int len) |
void |
write(ByteBuffer c) |
int |
write(InputStream reader,
int max) |
public DefaultNByteQueue()
public DefaultNByteQueue(int initial)
public DefaultNByteQueue(int initial,
int increment)
public DefaultNByteQueue(byte[] data,
int initial,
int increment)
public static NByteQueue of()
of in interface NByteQueuepublic static NByteQueue of(int size)
of in interface NByteQueuepublic static NByteQueue of(byte[] content)
of in interface NByteQueuepublic int write(InputStream reader, int max)
write in interface NByteQueuepublic void write(ByteBuffer c)
write in interface NByteQueuepublic void write(byte[] c)
write in interface NByteQueuepublic void write(byte[] c,
int offset,
int len)
write in interface NByteQueuepublic void write(byte c)
write in interface NByteQueuepublic boolean isEmpty()
isEmpty in interface NByteQueuepublic int length()
length in interface NByteQueuepublic byte peek()
peek in interface NByteQueuepublic byte peekAt(int index)
peekAt in interface NByteQueuepublic String peek(int count)
peek in interface NByteQueuepublic boolean canRead()
canRead in interface NByteQueuepublic boolean canReadByCount(int count)
canReadByCount in interface NByteQueuepublic String read(int count)
read in interface NByteQueuepublic void skip(int count)
skip in interface NByteQueuepublic NMatchType skipValue(String value)
skipValue in interface NByteQueuepublic void clear()
clear in interface NByteQueuepublic byte read()
read in interface NByteQueuepublic void ensureAvailable(int z)
ensureAvailable in interface NByteQueuepublic byte byteAt(int index)
byteAt in interface NByteQueuepublic IntStream bytes()
bytes in interface NByteQueuepublic boolean hasNext()
hasNext in interface NByteQueuepublic boolean isEOF()
isEOF in interface NByteQueuepublic void eof(boolean eof)
eof in interface NByteQueuepublic int increment()
increment in interface NByteQueuepublic int from()
from in interface NByteQueuepublic int to()
to in interface NByteQueuepublic int allocatedSize()
allocatedSize in interface NByteQueueCopyright © 2026 vpc open source initiative. All rights reserved.