| Modifier and Type | Method and Description |
|---|---|
Buffer |
Buffer.appendBuffer(Buffer buff)
Appends the specified
Buffer to the end of this Buffer. |
Buffer |
Buffer.appendByte(byte b)
Appends the specified
byte to the end of the Buffer. |
Buffer |
Buffer.appendBytes(byte[] bytes)
Appends the specified
byte[] to the end of the Buffer. |
Buffer |
Buffer.appendDouble(double d)
Appends the specified
double to the end of the Buffer. |
Buffer |
Buffer.appendFloat(float f)
Appends the specified
float to the end of the Buffer. |
Buffer |
Buffer.appendInt(int i)
Appends the specified
int to the end of the Buffer. |
Buffer |
Buffer.appendLong(long l)
Appends the specified
long to the end of the Buffer. |
Buffer |
Buffer.appendShort(short s)
Appends the specified
short to the end of the Buffer.The buffer will expand as necessary to accomodate any bytes written. |
Buffer |
Buffer.appendString(java.lang.String str)
Appends the specified
String str to the end of the Buffer with UTF-8 encoding. |
Buffer |
Buffer.appendString(java.lang.String str,
java.lang.String enc)
Appends the specified
String to the end of the Buffer with the encoding as specified by enc . |
Buffer |
Buffer.copy()
Returns a copy of the entire Buffer.
|
Buffer |
Buffer.getBuffer(int start,
int end)
Returns a copy of a sub-sequence the Buffer as a
Buffer starting at position start
and ending at position end - 1 |
Buffer |
Buffer.setBuffer(int pos,
Buffer b)
Sets the bytes at position
pos in the Buffer to the bytes represented by the Buffer b . |
Buffer |
Buffer.setByte(int pos,
byte b)
Sets the
byte at position pos in the Buffer to the value b . |
Buffer |
Buffer.setBytes(int pos,
byte[] b)
Sets the bytes at position
pos in the Buffer to the bytes represented by the byte[] b . |
Buffer |
Buffer.setBytes(int pos,
java.nio.ByteBuffer b)
Sets the bytes at position
pos in the Buffer to the bytes represented by the ByteBuffer b . |
Buffer |
Buffer.setDouble(int pos,
double d)
Sets the
double at position pos in the Buffer to the value d . |
Buffer |
Buffer.setFloat(int pos,
float f)
Sets the
float at position pos in the Buffer to the value f . |
Buffer |
Buffer.setInt(int pos,
int i)
Sets the
int at position pos in the Buffer to the value i . |
Buffer |
Buffer.setLong(int pos,
long l)
Sets the
long at position pos in the Buffer to the value l . |
Buffer |
Buffer.setShort(int pos,
short s)
Sets the
short at position pos in the Buffer to the value s . |
Buffer |
Buffer.setString(int pos,
java.lang.String str)
Sets the bytes at position
pos in the Buffer to the value of str endoded in UTF-8. |
Buffer |
Buffer.setString(int pos,
java.lang.String str,
java.lang.String enc)
Sets the bytes at position
pos in the Buffer to the value of str encoded in encoding enc . |
| Modifier and Type | Method and Description |
|---|---|
Buffer |
Buffer.appendBuffer(Buffer buff)
Appends the specified
Buffer to the end of this Buffer. |
Buffer |
Buffer.setBuffer(int pos,
Buffer b)
Sets the bytes at position
pos in the Buffer to the bytes represented by the Buffer b . |
| Modifier and Type | Method and Description |
|---|---|
void |
EventBus.publish(java.lang.String address,
Buffer message)
Publish a Buffer as a message
|
void |
EventBus.send(java.lang.String address,
Buffer message)
Send a Buffer as a message
|
void |
EventBus.send(java.lang.String address,
Buffer message,
Handler<Message<Buffer>> replyHandler)
Send a Buffer as a message
|
| Modifier and Type | Method and Description |
|---|---|
void |
EventBus.send(java.lang.String address,
Buffer message,
Handler<Message<Buffer>> replyHandler)
Send a Buffer as a message
|
| Modifier and Type | Method and Description |
|---|---|
Buffer |
FileSystem.readFileSync(java.lang.String path)
Synchronous version of
FileSystem.readFile(String, AsyncResultHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
AsyncFile.read(Buffer buffer,
int offset,
int position,
int length,
AsyncResultHandler<Buffer> handler)
Reads
length bytes of data from the file at position position in the file, asynchronously. |
void |
AsyncFile.write(Buffer buffer,
int position,
AsyncResultHandler<java.lang.Void> handler)
Write a
Buffer to the file at position position in the file, asynchronously. |
void |
FileSystem.writeFile(java.lang.String path,
Buffer data,
AsyncResultHandler<java.lang.Void> handler)
Creates the file, and writes the specified
Buffer data to the file represented by the path path ,
asynchronously. |
void |
FileSystem.writeFileSync(java.lang.String path,
Buffer data)
Synchronous version of
FileSystem.writeFile(String, Buffer, AsyncResultHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
AsyncFile.read(Buffer buffer,
int offset,
int position,
int length,
AsyncResultHandler<Buffer> handler)
Reads
length bytes of data from the file at position position in the file, asynchronously. |
void |
FileSystem.readFile(java.lang.String path,
AsyncResultHandler<Buffer> handler)
Reads the entire file as represented by the path
path as a Buffer , asynchronously. |
| Modifier and Type | Method and Description |
|---|---|
void |
HttpClientRequest.end(Buffer chunk)
Same as
HttpClientRequest.end() but writes some data to the request body before ending. |
abstract void |
HttpServerResponse.end(Buffer chunk)
Same as
HttpServerResponse.end() but writes some data to the response body before ending. |
HttpClientRequest |
HttpClientRequest.write(Buffer chunk)
Write a
Buffer to the request body. |
abstract HttpServerResponse |
HttpServerResponse.write(Buffer chunk)
Write a
Buffer to the response body. |
HttpClientRequest |
HttpClientRequest.write(Buffer chunk,
Handler<java.lang.Void> doneHandler)
Write a
Buffer to the request body. |
abstract HttpServerResponse |
HttpServerResponse.write(Buffer chunk,
Handler<java.lang.Void> doneHandler)
Write a
Buffer to the response body. |
abstract void |
WebSocket.writeBinaryFrame(Buffer data)
Write
data to the websocket as a binary frame |
| Modifier and Type | Method and Description |
|---|---|
abstract NetSocket |
NetSocket.write(Buffer data)
Write a
Buffer to the request body. |
abstract NetSocket |
NetSocket.write(Buffer data,
Handler<java.lang.Void> doneHandler)
Write a
Buffer to the connection. |
abstract void |
NetSocket.writeBuffer(Buffer data)
Write some data to the stream.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
NetSocket.dataHandler(Handler<Buffer> dataHandler)
Set a data handler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RecordParser.handle(Buffer buffer)
This method is called to provide the parser with data.
|
| Modifier and Type | Method and Description |
|---|---|
static RecordParser |
RecordParser.newDelimited(byte[] delim,
Handler<Buffer> output)
Create a new
RecordParser instance, initially in delimited mode, and where the delimiter can be represented
by the byte[] delim. |
static RecordParser |
RecordParser.newDelimited(java.lang.String delim,
Handler<Buffer> output)
Create a new
RecordParser instance, initially in delimited mode, and where the delimiter can be represented
by the String delim endcoded in latin-1 . |
static RecordParser |
RecordParser.newFixed(int size,
Handler<Buffer> output)
Create a new
RecordParser instance, initially in fixed size mode, and where the record size is specified
by the size parameter. |
void |
RecordParser.setOutput(Handler<Buffer> output) |
| Modifier and Type | Method and Description |
|---|---|
void |
WriteStream.writeBuffer(Buffer data)
Write some data to the stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ReadStream.dataHandler(Handler<Buffer> handler)
Set a data handler.
|


{% extends "base.html" %} {% block nav_form %}{% endblock nav_form %} {% block body %}
To login simply enter your email address below, and click the link that is sent to you.