public static class InvokerService.InvokerInfoBuffer extends Writer implements Cloneable
| Modifier and Type | Field and Description |
|---|---|
static int |
CHUNK_LENGTH
The append chunk size.
|
static int |
MAX_CAPACITY
The maximum capacity of the buffer.
|
static int |
MIN_CAPACITY
The minimum capacity of the buffer.
|
| Constructor and Description |
|---|
InvokerInfoBuffer()
Creates default info buffer with unpooled heap buffer and UTF8
charset.
|
InvokerInfoBuffer(io.netty.buffer.ByteBuf byteBuf,
Charset charset) |
InvokerInfoBuffer(int maxCapacity)
Creates default info buffer with unpooled heap buffer and UTF8
charset.
|
| Modifier and Type | Method and Description |
|---|---|
io.netty.buffer.ByteBuf |
append(boolean booleanValue)
Appends the given value as a string to the buffer.
|
Writer |
append(char ch) |
Writer |
append(CharSequence csq) |
Writer |
append(CharSequence csq,
int start,
int end) |
io.netty.buffer.ByteBuf |
append(int intValue)
Appends the given value as a string to the buffer.
|
io.netty.buffer.ByteBuf |
append(long longValue)
Appends the given value as a string to the buffer.
|
io.netty.buffer.ByteBuf |
append(Object obj)
Appends the given value as a string to the buffer.
|
io.netty.buffer.ByteBuf |
append(String str)
Transfers the specified strings byte data, based on the charset, to
the buffer starting at the current writerIndex and increases the
writerIndex by the number of the transferred bytes (= bytes.length).
|
InvokerService.InvokerInfoBuffer |
appendString(String str)
Appends a String and return this object.
|
protected InvokerService.InvokerInfoBuffer |
clone() |
void |
close() |
boolean |
contains(CharSequence sequence)
Returns true if and only if this string representation of the buffer
contains the specified sequence of char values.
|
void |
flush() |
io.netty.buffer.ByteBuf |
getByteBuf() |
Charset |
getCharset() |
int |
getMaxCapacity() |
String |
getValue()
The string value of the byte buf.
|
void |
reset()
Resets the indexes.
|
void |
write(char[] cbuf,
int off,
int len) |
public static final int MIN_CAPACITY
public static final int MAX_CAPACITY
public static final int CHUNK_LENGTH
public InvokerInfoBuffer()
public InvokerInfoBuffer(int maxCapacity)
maxCapacity - the maximum capacitypublic InvokerInfoBuffer(io.netty.buffer.ByteBuf byteBuf,
Charset charset)
byteBuf - the byte buffercharset - the charsetpublic io.netty.buffer.ByteBuf getByteBuf()
public Charset getCharset()
public int getMaxCapacity()
public String getValue()
public boolean contains(CharSequence sequence)
sequence - the char sequenceString.contains(CharSequence)public io.netty.buffer.ByteBuf append(String str)
str - the stringByteBuf.writeBytes(byte[])public io.netty.buffer.ByteBuf append(boolean booleanValue)
booleanValue - the boolean valuepublic io.netty.buffer.ByteBuf append(int intValue)
intValue - the int valuepublic io.netty.buffer.ByteBuf append(long longValue)
longValue - the long valuepublic io.netty.buffer.ByteBuf append(Object obj)
obj - the objectpublic Writer append(CharSequence csq) throws IOException
append in interface Appendableappend in class WriterIOExceptionpublic Writer append(CharSequence csq, int start, int end) throws IOException
append in interface Appendableappend in class WriterIOExceptionpublic Writer append(char ch) throws IOException
append in interface Appendableappend in class WriterIOExceptionpublic void write(char[] cbuf,
int off,
int len)
throws IOException
write in class WriterIOExceptionpublic InvokerService.InvokerInfoBuffer appendString(String str)
str - the stringpublic void flush()
throws IOException
flush in interface Flushableflush in class WriterIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class WriterIOExceptionpublic void reset()
protected InvokerService.InvokerInfoBuffer clone()
Copyright © 2016. All rights reserved.