| Package | Description |
|---|---|
| io.vertx.axle.core.buffer | |
| io.vertx.axle.core.datagram | |
| io.vertx.axle.core.file | |
| io.vertx.axle.core.http | |
| io.vertx.axle.core.net | |
| io.vertx.axle.core.parsetools |
| Modifier and Type | Field and Description |
|---|---|
static TypeArg<Buffer> |
Buffer.__TYPE_ARG |
| Modifier and Type | Method and Description |
|---|---|
Buffer |
Buffer.appendBuffer(Buffer buff)
Appends the specified
Buffer to the end of this Buffer. |
Buffer |
Buffer.appendBuffer(Buffer buff,
int offset,
int len)
Appends the specified
Buffer starting at the offset using len 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.appendBytes(byte[] bytes,
int offset,
int len)
Appends the specified number of bytes from
byte[] to the end of the Buffer, starting at the given offset. |
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.appendIntLE(int i)
Appends the specified
int to the end of the Buffer in the Little Endian Byte Order. |
Buffer |
Buffer.appendLong(long l)
Appends the specified
long to the end of the Buffer. |
Buffer |
Buffer.appendLongLE(long l)
Appends the specified
long to the end of the Buffer in the Little Endian Byte Order. |
Buffer |
Buffer.appendMedium(int i)
Appends the specified 24bit
int to the end of the Buffer. |
Buffer |
Buffer.appendMediumLE(int i)
Appends the specified 24bit
int to the end of the Buffer in the Little Endian Byte Order. |
Buffer |
Buffer.appendShort(short s)
Appends the specified
short to the end of the Buffer.The buffer will expand as necessary to accommodate any bytes written. |
Buffer |
Buffer.appendShortLE(short s)
Appends the specified
short to the end of the Buffer in the Little Endian Byte Order.The buffer will expand as necessary to accommodate any bytes written. |
Buffer |
Buffer.appendString(String str)
Appends the specified
String str to the end of the Buffer with UTF-8 encoding. |
Buffer |
Buffer.appendString(String str,
String enc)
Appends the specified
String to the end of the Buffer with the encoding as specified by enc. |
Buffer |
Buffer.appendUnsignedByte(short b)
Appends the specified unsigned
byte to the end of the Buffer. |
Buffer |
Buffer.appendUnsignedInt(long i)
Appends the specified unsigned
int to the end of the Buffer. |
Buffer |
Buffer.appendUnsignedIntLE(long i)
Appends the specified unsigned
int to the end of the Buffer in the Little Endian Byte Order. |
Buffer |
Buffer.appendUnsignedShort(int s)
Appends the specified unsigned
short to the end of the Buffer.The buffer will expand as necessary to accommodate any bytes written. |
Buffer |
Buffer.appendUnsignedShortLE(int s)
Appends the specified unsigned
short to the end of the Buffer in the Little Endian Byte Order.The buffer will expand as necessary to accommodate any bytes written. |
static Buffer |
Buffer.buffer()
Create a new, empty buffer.
|
static Buffer |
Buffer.buffer(byte[] bytes)
Create a new buffer from a byte[].
|
static Buffer |
Buffer.buffer(io.netty.buffer.ByteBuf byteBuf)
Create a new buffer from a Netty
ByteBuf. |
static Buffer |
Buffer.buffer(int initialSizeHint)
Create a new buffer given the initial size hint.
|
static Buffer |
Buffer.buffer(String string)
Create a new buffer from a string.
|
static Buffer |
Buffer.buffer(String string,
String enc)
Create a new buffer from a string and using the specified encoding.
|
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.getBytes(byte[] dst)
Transfers the content of the Buffer into a
byte[]. |
Buffer |
Buffer.getBytes(byte[] dst,
int dstIndex)
Transfers the content of the Buffer into a
byte[] at the specific destination. |
Buffer |
Buffer.getBytes(int start,
int end,
byte[] dst)
Transfers the content of the Buffer starting at position
start and ending at position end - 1
into a byte[]. |
Buffer |
Buffer.getBytes(int start,
int end,
byte[] dst,
int dstIndex)
Transfers the content of the Buffer starting at position
start and ending at position end - 1
into a byte[] at the specific destination. |
static Buffer |
Buffer.newInstance(io.vertx.core.buffer.Buffer arg) |
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.setBuffer(int pos,
Buffer b,
int offset,
int len)
Sets the bytes at position
pos in the Buffer to the bytes represented by the Buffer b on the given offset and len. |
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,
byte[] b,
int offset,
int len)
Sets the given number of bytes at position
pos in the Buffer to the bytes represented by the byte[] b. |
Buffer |
Buffer.setBytes(int pos,
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.setIntLE(int pos,
int i)
Sets the
int at position pos in the Buffer to the value i in the Little Endian Byte Order. |
Buffer |
Buffer.setLong(int pos,
long l)
Sets the
long at position pos in the Buffer to the value l. |
Buffer |
Buffer.setLongLE(int pos,
long l)
Sets the
long at position pos in the Buffer to the value l in the Little Endian Byte Order. |
Buffer |
Buffer.setMedium(int pos,
int i)
Sets the 24bit
int at position pos in the Buffer to the value i. |
Buffer |
Buffer.setMediumLE(int pos,
int i)
Sets the 24bit
int at position pos in the Buffer to the value i. |
Buffer |
Buffer.setShort(int pos,
short s)
Sets the
short at position pos in the Buffer to the value s. |
Buffer |
Buffer.setShortLE(int pos,
short s)
Sets the
short at position pos in the Buffer to the value s in the Little Endian Byte Order. |
Buffer |
Buffer.setString(int pos,
String str)
Sets the bytes at position
pos in the Buffer to the value of str encoded in UTF-8. |
Buffer |
Buffer.setString(int pos,
String str,
String enc)
Sets the bytes at position
pos in the Buffer to the value of str encoded in encoding enc. |
Buffer |
Buffer.setUnsignedByte(int pos,
short b)
Sets the unsigned
byte at position pos in the Buffer to the value b. |
Buffer |
Buffer.setUnsignedInt(int pos,
long i)
Sets the unsigned
int at position pos in the Buffer to the value i. |
Buffer |
Buffer.setUnsignedIntLE(int pos,
long i)
Sets the unsigned
int at position pos in the Buffer to the value i in the Little Endian Byte Order. |
Buffer |
Buffer.setUnsignedShort(int pos,
int s)
Sets the unsigned
short at position pos in the Buffer to the value s. |
Buffer |
Buffer.setUnsignedShortLE(int pos,
int s)
Sets the unsigned
short at position pos in the Buffer to the value s in the Little Endian Byte Order. |
Buffer |
Buffer.slice()
Returns a slice of this buffer.
|
Buffer |
Buffer.slice(int start,
int end)
Returns a slice of this buffer.
|
| Modifier and Type | Method and Description |
|---|---|
Buffer |
Buffer.appendBuffer(Buffer buff)
Appends the specified
Buffer to the end of this Buffer. |
Buffer |
Buffer.appendBuffer(Buffer buff,
int offset,
int len)
Appends the specified
Buffer starting at the offset using len 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. |
Buffer |
Buffer.setBuffer(int pos,
Buffer b,
int offset,
int len)
Sets the bytes at position
pos in the Buffer to the bytes represented by the Buffer b on the given offset and len. |
| Modifier and Type | Method and Description |
|---|---|
Buffer |
DatagramPacket.data()
Returns the data of the
DatagramPacket |
| Modifier and Type | Method and Description |
|---|---|
WriteStream<Buffer> |
DatagramSocket.sender(int port,
String host)
Returns a
WriteStream able to send to the
SocketAddress. |
| Modifier and Type | Method and Description |
|---|---|
CompletionStage<DatagramSocket> |
DatagramSocket.send(Buffer packet,
int port,
String host)
Write the given
Buffer to the SocketAddress. |
| Modifier and Type | Method and Description |
|---|---|
Buffer |
FileSystem.readFileBlocking(String path)
Blocking version of
FileSystem.readFile(java.lang.String) |
| Modifier and Type | Method and Description |
|---|---|
Pipe<Buffer> |
AsyncFile.pipe()
Pause this stream and return a to transfer the elements of this stream to a destination .
|
CompletionStage<Buffer> |
AsyncFile.read(Buffer buffer,
int offset,
long position,
int length)
Reads
length bytes of data from the file at position position in the file, asynchronously. |
CompletionStage<Buffer> |
FileSystem.readFile(String path)
Reads the entire file as represented by the path
path as a , asynchronously. |
org.reactivestreams.Publisher<Buffer> |
AsyncFile.toPublisher() |
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<Buffer> |
AsyncFile.toPublisherBuilder() |
| Modifier and Type | Method and Description |
|---|---|
CompletionStage<Void> |
AsyncFile.end(Buffer data)
Same as but with an
handler called when the operation completes |
CompletionStage<Buffer> |
AsyncFile.read(Buffer buffer,
int offset,
long position,
int length)
Reads
length bytes of data from the file at position position in the file, asynchronously. |
CompletionStage<Void> |
AsyncFile.write(Buffer data)
Same as
AsyncFile.write(io.vertx.axle.core.buffer.Buffer) but with an handler called when the operation completes |
CompletionStage<Void> |
AsyncFile.write(Buffer buffer,
long position)
Write a
Buffer to the file at position position in the file, asynchronously. |
CompletionStage<Void> |
FileSystem.writeFile(String path,
Buffer data)
Creates the file, and writes the specified
Buffer data to the file represented by the path path,
asynchronously. |
FileSystem |
FileSystem.writeFileBlocking(String path,
Buffer data)
Blocking version of
FileSystem.writeFile(java.lang.String, io.vertx.axle.core.buffer.Buffer) |
| Modifier and Type | Method and Description |
|---|---|
AsyncFile |
AsyncFile.handler(Consumer<Buffer> handler) |
CompletionStage<Void> |
AsyncFile.pipeTo(WriteStream<Buffer> dst)
Pipe this
ReadStream to the WriteStream. |
| Modifier and Type | Method and Description |
|---|---|
Buffer |
WebSocketFrame.binaryData() |
Buffer |
HttpFrame.payload() |
| Modifier and Type | Method and Description |
|---|---|
CompletionStage<Buffer> |
HttpConnection.ping(Buffer data)
Send a frame to the remote endpoint.
|
Pipe<Buffer> |
WebSocket.pipe()
Pause this stream and return a to transfer the elements of this stream to a destination .
|
Pipe<Buffer> |
WebSocketBase.pipe()
Pause this stream and return a to transfer the elements of this stream to a destination .
|
Pipe<Buffer> |
HttpServerFileUpload.pipe()
Pause this stream and return a to transfer the elements of this stream to a destination .
|
Pipe<Buffer> |
HttpClientResponse.pipe()
Pause this stream and return a to transfer the elements of this stream to a destination .
|
Pipe<Buffer> |
HttpServerRequest.pipe()
Pause this stream and return a to transfer the elements of this stream to a destination .
|
Pipe<Buffer> |
ServerWebSocket.pipe()
Pause this stream and return a to transfer the elements of this stream to a destination .
|
org.reactivestreams.Publisher<Buffer> |
WebSocket.toPublisher() |
org.reactivestreams.Publisher<Buffer> |
HttpServerFileUpload.toPublisher() |
org.reactivestreams.Publisher<Buffer> |
HttpClientResponse.toPublisher() |
org.reactivestreams.Publisher<Buffer> |
HttpServerRequest.toPublisher() |
org.reactivestreams.Publisher<Buffer> |
ServerWebSocket.toPublisher() |
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<Buffer> |
WebSocket.toPublisherBuilder() |
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<Buffer> |
HttpServerFileUpload.toPublisherBuilder() |
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<Buffer> |
HttpClientResponse.toPublisherBuilder() |
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<Buffer> |
HttpServerRequest.toPublisherBuilder() |
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<Buffer> |
ServerWebSocket.toPublisherBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static WebSocketFrame |
WebSocketFrame.binaryFrame(Buffer data,
boolean isFinal)
Create a binary WebSocket frame.
|
static WebSocketFrame |
WebSocketFrame.continuationFrame(Buffer data,
boolean isFinal)
Create a continuation frame
|
CompletionStage<Void> |
WebSocket.end(Buffer data)
Same as but with an
handler called when the operation completes |
CompletionStage<Void> |
HttpServerResponse.end(Buffer chunk)
Same as
HttpServerResponse.end() but with an handler called when the operation completes |
CompletionStage<Void> |
WebSocketBase.end(Buffer data)
Same as but with an
handler called when the operation completes |
CompletionStage<Void> |
HttpClientRequest.end(Buffer chunk)
Same as
HttpClientRequest.end(java.lang.String) but with an handler called when the operation completes |
CompletionStage<Void> |
ServerWebSocket.end(Buffer data)
Same as but with an
handler called when the operation completes |
HttpConnection |
HttpConnection.goAway(long errorCode,
int lastStreamId,
Buffer debugData)
Send a go away frame to the remote endpoint of the connection.
|
CompletionStage<Buffer> |
HttpConnection.ping(Buffer data)
Send a frame to the remote endpoint.
|
static WebSocketFrame |
WebSocketFrame.pingFrame(Buffer data)
Create a ping WebSocket frame.
|
static WebSocketFrame |
WebSocketFrame.pongFrame(Buffer data)
Create a pong WebSocket frame.
|
CompletionStage<Void> |
WebSocket.write(Buffer data) |
CompletionStage<Void> |
HttpServerResponse.write(Buffer data)
Same as
HttpServerResponse.write(io.vertx.axle.core.buffer.Buffer) but with an handler called when the operation completes |
CompletionStage<Void> |
WebSocketBase.write(Buffer data) |
CompletionStage<Void> |
HttpClientRequest.write(Buffer data)
Same as
HttpClientRequest.write(io.vertx.axle.core.buffer.Buffer) but with an handler called when the operation completes |
CompletionStage<Void> |
ServerWebSocket.write(Buffer data) |
CompletionStage<Void> |
WebSocket.writeBinaryMessage(Buffer data) |
CompletionStage<Void> |
WebSocketBase.writeBinaryMessage(Buffer data)
Same as
WebSocketBase.writeBinaryMessage(io.vertx.axle.core.buffer.Buffer) but with an handler called when the operation completes |
CompletionStage<Void> |
ServerWebSocket.writeBinaryMessage(Buffer data) |
HttpServerResponse |
HttpServerResponse.writeCustomFrame(int type,
int flags,
Buffer payload)
Write an HTTP/2 frame to the response, allowing to extend the HTTP/2 protocol.
|
HttpClientRequest |
HttpClientRequest.writeCustomFrame(int type,
int flags,
Buffer payload)
Write an HTTP/2 frame to the request, allowing to extend the HTTP/2 protocol.
|
CompletionStage<Void> |
WebSocket.writeFinalBinaryFrame(Buffer data) |
CompletionStage<Void> |
WebSocketBase.writeFinalBinaryFrame(Buffer data)
Same as
WebSocketBase.writeFinalBinaryFrame(io.vertx.axle.core.buffer.Buffer) but with an handler called when the operation completes |
CompletionStage<Void> |
ServerWebSocket.writeFinalBinaryFrame(Buffer data) |
WebSocketBase |
WebSocket.writePing(Buffer data)
Writes a ping frame to the connection.
|
WebSocketBase |
WebSocketBase.writePing(Buffer data)
Writes a ping frame to the connection.
|
WebSocketBase |
ServerWebSocket.writePing(Buffer data)
Writes a ping frame to the connection.
|
WebSocketBase |
WebSocket.writePong(Buffer data)
Writes a pong frame to the connection.
|
WebSocketBase |
WebSocketBase.writePong(Buffer data)
Writes a pong frame to the connection.
|
WebSocketBase |
ServerWebSocket.writePong(Buffer data)
Writes a pong frame to the connection.
|
| Modifier and Type | Method and Description |
|---|---|
WebSocketBase |
WebSocket.binaryMessageHandler(Consumer<Buffer> handler)
Set a binary message handler on the connection.
|
WebSocketBase |
WebSocketBase.binaryMessageHandler(Consumer<Buffer> handler)
Set a binary message handler on the connection.
|
WebSocketBase |
ServerWebSocket.binaryMessageHandler(Consumer<Buffer> handler)
Set a binary message handler on the connection.
|
HttpClientResponse |
HttpClientResponse.bodyHandler(Consumer<Buffer> bodyHandler)
Convenience method for receiving the entire request body in one piece.
|
HttpServerRequest |
HttpServerRequest.bodyHandler(Consumer<Buffer> bodyHandler)
Convenience method for receiving the entire request body in one piece.
|
WebSocket |
WebSocket.handler(Consumer<Buffer> handler) |
WebSocketBase |
WebSocketBase.handler(Consumer<Buffer> handler) |
HttpServerFileUpload |
HttpServerFileUpload.handler(Consumer<Buffer> handler) |
HttpClientResponse |
HttpClientResponse.handler(Consumer<Buffer> handler) |
HttpServerRequest |
HttpServerRequest.handler(Consumer<Buffer> handler) |
ServerWebSocket |
ServerWebSocket.handler(Consumer<Buffer> handler) |
HttpConnection |
HttpConnection.pingHandler(Consumer<Buffer> handler)
Set an handler notified when a frame is received from the remote endpoint.
|
CompletionStage<Void> |
WebSocket.pipeTo(WriteStream<Buffer> dst)
Pipe this
ReadStream to the WriteStream. |
CompletionStage<Void> |
WebSocketBase.pipeTo(WriteStream<Buffer> dst)
Pipe this
ReadStream to the WriteStream. |
CompletionStage<Void> |
HttpServerFileUpload.pipeTo(WriteStream<Buffer> dst)
Pipe this
ReadStream to the WriteStream. |
CompletionStage<Void> |
HttpClientResponse.pipeTo(WriteStream<Buffer> dst)
Pipe this
ReadStream to the WriteStream. |
CompletionStage<Void> |
HttpServerRequest.pipeTo(WriteStream<Buffer> dst)
Pipe this
ReadStream to the WriteStream. |
CompletionStage<Void> |
ServerWebSocket.pipeTo(WriteStream<Buffer> dst)
Pipe this
ReadStream to the WriteStream. |
WebSocketBase |
WebSocket.pongHandler(Consumer<Buffer> handler)
Set a pong frame handler on the connection.
|
WebSocketBase |
WebSocketBase.pongHandler(Consumer<Buffer> handler)
Set a pong frame handler on the connection.
|
WebSocketBase |
ServerWebSocket.pongHandler(Consumer<Buffer> handler)
Set a pong frame handler on the connection.
|
| Modifier and Type | Method and Description |
|---|---|
Pipe<Buffer> |
NetSocket.pipe()
Pause this stream and return a to transfer the elements of this stream to a destination .
|
org.reactivestreams.Publisher<Buffer> |
NetSocket.toPublisher() |
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<Buffer> |
NetSocket.toPublisherBuilder() |
| Modifier and Type | Method and Description |
|---|---|
CompletionStage<Void> |
NetSocket.end(Buffer data)
Same as but with an
handler called when the operation completes |
CompletionStage<Void> |
NetSocket.write(Buffer message)
Like but with an
handler called when the message has been written
or failed to be written. |
| Modifier and Type | Method and Description |
|---|---|
NetSocket |
NetSocket.handler(Consumer<Buffer> handler) |
CompletionStage<Void> |
NetSocket.pipeTo(WriteStream<Buffer> dst)
Pipe this
ReadStream to the WriteStream. |
| Modifier and Type | Method and Description |
|---|---|
Buffer |
JsonEvent.binaryValue()
Return the binary value.
|
| Modifier and Type | Method and Description |
|---|---|
Pipe<Buffer> |
RecordParser.pipe()
Pause this stream and return a to transfer the elements of this stream to a destination .
|
org.reactivestreams.Publisher<Buffer> |
RecordParser.toPublisher() |
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<Buffer> |
RecordParser.toPublisherBuilder() |
| Modifier and Type | Method and Description |
|---|---|
void |
RecordParser.delimitedMode(Buffer delim)
Flip the parser into delimited mode, and where the delimiter can be represented
by the delimiter
delim. |
void |
RecordParser.handle(Buffer buffer)
This method is called to provide the parser with data.
|
void |
JsonParser.handle(Buffer event)
Something has happened, so handle it.
|
static RecordParser |
RecordParser.newDelimited(Buffer delim)
Create a new
RecordParser instance, initially in delimited mode, and where the delimiter can be represented
by the Buffer delim. |
static RecordParser |
RecordParser.newDelimited(Buffer delim,
Consumer<Buffer> output)
Like
RecordParser.newDelimited(java.lang.String, java.util.function.Consumer<io.vertx.axle.core.buffer.Buffer>) but set the output that will receive whole records
which have been parsed. |
static RecordParser |
RecordParser.newDelimited(Buffer delim,
org.reactivestreams.Publisher<Buffer> stream)
Like
RecordParser.newDelimited(java.lang.String, java.util.function.Consumer<io.vertx.axle.core.buffer.Buffer>) but wraps the stream. |
static RecordParser |
RecordParser.newDelimited(Buffer delim,
ReadStream<Buffer> stream)
Like
RecordParser.newDelimited(java.lang.String, java.util.function.Consumer<io.vertx.axle.core.buffer.Buffer>) but wraps the stream. |
JsonParser |
JsonParser.write(Buffer buffer)
Handle a
Buffer, pretty much like calling Handler. |
Copyright © 2019 SmallRye. All rights reserved.