Uses of Interface
io.vertx.core.buffer.Buffer
Packages that use Buffer
Package
Description
-
Uses of Buffer in io.vertx.core.buffer
Methods in io.vertx.core.buffer that return BufferModifier and TypeMethodDescriptionBuffer.appendBuffer(Buffer buff) Appends the specifiedBufferto the end of this Buffer.Buffer.appendBuffer(Buffer buff, int offset, int len) Appends the specifiedBufferstarting at theoffsetusinglento the end of this Buffer.Buffer.appendByte(byte b) Appends the specifiedbyteto the end of the Buffer.Buffer.appendBytes(byte[] bytes) Appends the specifiedbyte[]to the end of the Buffer.Buffer.appendBytes(byte[] bytes, int offset, int len) Appends the specified number of bytes frombyte[]to the end of the Buffer, starting at the given offset.Buffer.appendDouble(double d) Appends the specifieddoubleto the end of the Buffer.Buffer.appendDoubleLE(double d) Appends the specified unsigneddoubleto the end of the Buffer in the Little Endian Byte Order.The buffer will expand as necessary to accommodate any bytes written.Buffer.appendFloat(float f) Appends the specifiedfloatto the end of the Buffer.Buffer.appendFloatLE(float f) Appends the specified unsignedfloatto the end of the Buffer in the Little Endian Byte Order.The buffer will expand as necessary to accommodate any bytes written.Buffer.appendInt(int i) Appends the specifiedintto the end of the Buffer.Buffer.appendIntLE(int i) Appends the specifiedintto the end of the Buffer in the Little Endian Byte Order.Buffer.appendLong(long l) Appends the specifiedlongto the end of the Buffer.Buffer.appendLongLE(long l) Appends the specifiedlongto the end of the Buffer in the Little Endian Byte Order.Buffer.appendMedium(int i) Appends the specified 24bitintto the end of the Buffer.Buffer.appendMediumLE(int i) Appends the specified 24bitintto the end of the Buffer in the Little Endian Byte Order.Buffer.appendShort(short s) Appends the specifiedshortto the end of the Buffer.The buffer will expand as necessary to accommodate any bytes written.Buffer.appendShortLE(short s) Appends the specifiedshortto the end of the Buffer in the Little Endian Byte Order.The buffer will expand as necessary to accommodate any bytes written.Buffer.appendString(String str) Appends the specifiedString strto the end of the Buffer with UTF-8 encoding.Buffer.appendString(String str, String enc) Appends the specifiedStringto the end of the Buffer with the encoding as specified byenc.Buffer.appendUnsignedByte(short b) Appends the specified unsignedbyteto the end of the Buffer.Buffer.appendUnsignedInt(long i) Appends the specified unsignedintto the end of the Buffer.Buffer.appendUnsignedIntLE(long i) Appends the specified unsignedintto the end of the Buffer in the Little Endian Byte Order.Buffer.appendUnsignedShort(int s) Appends the specified unsignedshortto the end of the Buffer.The buffer will expand as necessary to accommodate any bytes written.Buffer.appendUnsignedShortLE(int s) Appends the specified unsignedshortto the end of the Buffer in the Little Endian Byte Order.The buffer will expand as necessary to accommodate any bytes written.static BufferBuffer.buffer()Create a new, empty buffer.static BufferBuffer.buffer(byte[] bytes) Create a new buffer from a byte[].static BufferBuffer.buffer(int initialSizeHint) Create a new buffer given the initial size hint.static BufferCreate a new buffer from a string.static BufferCreate a new buffer from a string and using the specified encoding.Buffer.copy()Returns a copy of the entire Buffer.static BufferCreate a buffer from the base 64 URL encodedvalueBuffer.getBuffer(int start, int end) Returns a copy of a sub-sequence the Buffer as aBufferstarting at positionstartand ending at positionend - 1Buffer.getBytes(byte[] dst) Transfers the content of the Buffer into abyte[].Buffer.getBytes(byte[] dst, int dstIndex) Transfers the content of the Buffer into abyte[]at the specific destination.Buffer.getBytes(int start, int end, byte[] dst) Transfers the content of the Buffer starting at positionstartand ending at positionend - 1into abyte[].Buffer.getBytes(int start, int end, byte[] dst, int dstIndex) Transfers the content of the Buffer starting at positionstartand ending at positionend - 1into abyte[]at the specific destination.Sets the bytes at positionposin the Buffer to the bytes represented by theBuffer b.Sets the bytes at positionposin the Buffer to the bytes represented by theBuffer bon the givenoffsetandlen.Buffer.setByte(int pos, byte b) Sets thebyteat positionposin the Buffer to the valueb.Buffer.setBytes(int pos, byte[] b) Sets the bytes at positionposin the Buffer to the bytes represented by thebyte[] b.Buffer.setBytes(int pos, byte[] b, int offset, int len) Sets the given number of bytes at positionposin the Buffer to the bytes represented by thebyte[] b.Buffer.setBytes(int pos, ByteBuffer b) Sets the bytes at positionposin the Buffer to the bytes represented by theByteBuffer b.Buffer.setDouble(int pos, double d) Sets thedoubleat positionposin the Buffer to the valued.Buffer.setDoubleLE(int pos, double d) Sets thedoubleat positionposin the Buffer to the valuedin the Little Endian Byte Order.Buffer.setFloat(int pos, float f) Sets thefloatat positionposin the Buffer to the valuef.Buffer.setFloatLE(int pos, float f) Sets thefloatat positionposin the Buffer to the valuefin the Little Endian Byte Order.Buffer.setInt(int pos, int i) Sets theintat positionposin the Buffer to the valuei.Buffer.setIntLE(int pos, int i) Sets theintat positionposin the Buffer to the valueiin the Little Endian Byte Order.Buffer.setLong(int pos, long l) Sets thelongat positionposin the Buffer to the valuel.Buffer.setLongLE(int pos, long l) Sets thelongat positionposin the Buffer to the valuelin the Little Endian Byte Order.Buffer.setMedium(int pos, int i) Sets the 24bitintat positionposin the Buffer to the valuei.Buffer.setMediumLE(int pos, int i) Sets the 24bitintat positionposin the Buffer to the valuei. in the Little Endian Byte OrderBuffer.setShort(int pos, short s) Sets theshortat positionposin the Buffer to the values.Buffer.setShortLE(int pos, short s) Sets theshortat positionposin the Buffer to the valuesin the Little Endian Byte Order.Sets the bytes at positionposin the Buffer to the value ofstrencoded in UTF-8.Sets the bytes at positionposin the Buffer to the value ofstrencoded in encodingenc.Buffer.setUnsignedByte(int pos, short b) Sets the unsignedbyteat positionposin the Buffer to the valueb.Buffer.setUnsignedInt(int pos, long i) Sets the unsignedintat positionposin the Buffer to the valuei.Buffer.setUnsignedIntLE(int pos, long i) Sets the unsignedintat positionposin the Buffer to the valueiin the Little Endian Byte Order.Buffer.setUnsignedShort(int pos, int s) Sets the unsignedshortat positionposin the Buffer to the values.Buffer.setUnsignedShortLE(int pos, int s) Sets the unsignedshortat positionposin the Buffer to the valuesin the Little Endian Byte Order.Buffer.slice()Returns a slice of this buffer.Buffer.slice(int start, int end) Returns a slice of this buffer.Methods in io.vertx.core.buffer with parameters of type BufferModifier and TypeMethodDescriptionBuffer.appendBuffer(Buffer buff) Appends the specifiedBufferto the end of this Buffer.Buffer.appendBuffer(Buffer buff, int offset, int len) Appends the specifiedBufferstarting at theoffsetusinglento the end of this Buffer.Sets the bytes at positionposin the Buffer to the bytes represented by theBuffer b.Sets the bytes at positionposin the Buffer to the bytes represented by theBuffer bon the givenoffsetandlen. -
Uses of Buffer in io.vertx.core.datagram
Methods in io.vertx.core.datagram that return BufferMethods in io.vertx.core.datagram that return types with arguments of type BufferModifier and TypeMethodDescriptionMethods in io.vertx.core.datagram with parameters of type Buffer -
Uses of Buffer in io.vertx.core.dns
Methods in io.vertx.core.dns that return BufferMethods in io.vertx.core.dns with parameters of type BufferModifier and TypeMethodDescriptionAddressResolverOptions.setHostsValue(Buffer hostsValue) Set an alternate hosts configuration file to use instead of the one provided by the os. -
Uses of Buffer in io.vertx.core.eventbus
Methods in io.vertx.core.eventbus with parameters of type BufferModifier and TypeMethodDescriptionEventBusOptions.addCrlValue(Buffer crlValue) MessageCodec.decodeFromWire(int pos, Buffer buffer) Called by Vert.x when a message is decoded from the wire.voidMessageCodec.encodeToWire(Buffer buffer, S s) Called by Vert.x when marshalling a message to the wire. -
Uses of Buffer in io.vertx.core.file
Methods in io.vertx.core.file that return BufferModifier and TypeMethodDescriptionFileSystem.readFileBlocking(String path) Blocking version ofFileSystem.readFile(String)Methods in io.vertx.core.file that return types with arguments of type BufferModifier and TypeMethodDescriptionReadslengthbytes of data from the file at positionpositionin the file, asynchronously.Reads the entire file as represented by the pathpathas aBuffer, asynchronously.Methods in io.vertx.core.file with parameters of type BufferModifier and TypeMethodDescriptionReadslengthbytes of data from the file at positionpositionin the file, asynchronously.Write aBufferto the file at positionpositionin the file, asynchronously.Creates the file, and writes the specifiedBuffer datato the file represented by the pathpath, asynchronously.FileSystem.writeFileBlocking(String path, Buffer data) Blocking version ofFileSystem.writeFile(String, Buffer)Method parameters in io.vertx.core.file with type arguments of type Buffer -
Uses of Buffer in io.vertx.core.http
Methods in io.vertx.core.http that return BufferModifier and TypeMethodDescriptionWebSocketFrame.binaryData()UpgradeRejectedException.getBody()GoAway.getDebugData()HttpFrame.payload()Methods in io.vertx.core.http that return types with arguments of type BufferModifier and TypeMethodDescriptionHttpClientResponse.body()Convenience method for receiving the entire request body in one piece.HttpServerRequest.body()Convenience method for receiving the entire request body in one piece.Send a PING frame to the remote endpoint.HttpConnection.proxyProtocolV2HeaderTLVs()HttpConnection.proxyProtocolV2HeaderTLVs()Methods in io.vertx.core.http with parameters of type BufferModifier and TypeMethodDescriptionHttpClientOptions.addCrlValue(Buffer crlValue) HttpServerOptions.addCrlValue(Buffer crlValue) WebSocketClientOptions.addCrlValue(Buffer crlValue) ClientMultipartForm.binaryFileUpload(String name, String filename, String mediaType, Buffer content) Add a binary file upload form data part.static WebSocketFrameWebSocketFrame.binaryFrame(Buffer data, boolean isFinal) Create a binary WebSocket frame.static WebSocketFrameWebSocketFrame.continuationFrame(Buffer data, boolean isFinal) Create a continuation frameSame asHttpClientRequest.end()but writes some data to the request body before ending.Same asHttpServerResponse.end()but writes some data to the response body before ending.Deprecated.Send a PING frame to the remote endpoint.static WebSocketFrameCreate a ping WebSocket frame.static WebSocketFrameCreate a pong WebSocket frame.default Future<HttpClientResponse> Send the request with a bufferbody.Send the request with a bufferbody.GoAway.setDebugData(Buffer debugData) Set the additional debug dataClientMultipartForm.textFileUpload(String name, String filename, String mediaType, Buffer content) Add a text file upload form data part.WebSocketBase.writeBinaryMessage(Buffer data) Writes a (potentially large) piece of binary data to the connection.HttpClientRequest.writeCustomFrame(int type, int flags, Buffer payload) Write an HTTP/2 frame to the request, allowing to extend the HTTP/2 protocol.HttpServerResponse.writeCustomFrame(int type, int flags, Buffer payload) Write an HTTP/2 frame to the response, allowing to extend the HTTP/2 protocol.WebSocketBase.writeFinalBinaryFrame(Buffer data) Write a final WebSocket binary frame to the connectionWrites a ping frame to the connection.Writes a pong frame to the connection.Method parameters in io.vertx.core.http with type arguments of type BufferModifier and TypeMethodDescriptionClientWebSocket.binaryMessageHandler(Handler<Buffer> handler) WebSocket.binaryMessageHandler(Handler<Buffer> handler) WebSocketBase.binaryMessageHandler(Handler<Buffer> handler) Set a binary message handler on the connection.default HttpClientResponseHttpClientResponse.bodyHandler(Handler<Buffer> bodyHandler) Convenience method for receiving the entire request body in one piece.default HttpServerRequestHttpServerRequest.bodyHandler(Handler<Buffer> bodyHandler) Convenience method for receiving the entire request body in one piece.HttpConnection.pingHandler(Handler<Buffer> handler) Set an handler notified when a PING frame is received from the remote endpoint.ClientWebSocket.pongHandler(Handler<Buffer> handler) WebSocket.pongHandler(Handler<Buffer> handler) WebSocketBase.pongHandler(Handler<Buffer> handler) Set a pong frame handler on the connection.default Future<HttpClientResponse> HttpClientRequest.send(ReadStream<Buffer> body) Send the request with a streambody.HttpServerResponse.send(ReadStream<Buffer> body) Send the request with a streambody.Constructors in io.vertx.core.http with parameters of type BufferModifierConstructorDescriptionUpgradeRejectedException(String message, int status, MultiMap headers, Buffer content) -
Uses of Buffer in io.vertx.core.json
Methods in io.vertx.core.json that return BufferModifier and TypeMethodDescriptionstatic BufferJson.encodeToBuffer(Object obj) Encode a POJO to JSON using the underlying Jackson mapper.JsonArray.getBuffer(int pos) Get the Buffer at positionposin the array.Get theBuffervalue with the specified key.LikeJsonObject.getBuffer(String)but specifying a default value to return if there is no entry.JsonArray.toBuffer()Encode this JSON object as buffer.JsonObject.toBuffer()Encode this JSON object as buffer.Methods in io.vertx.core.json with parameters of type BufferModifier and TypeMethodDescriptionstatic ObjectJson.decodeValue(Buffer buf) Decode a given JSON buffer.static <T> TJson.decodeValue(Buffer buf, Class<T> clazz) Decode a given JSON buffer to a POJO of the given class type.LikeJsonObject.getBuffer(String)but specifying a default value to return if there is no entry.intJsonArray.readFromBuffer(int pos, Buffer buffer) intJsonObject.readFromBuffer(int pos, Buffer buffer) voidJsonArray.writeToBuffer(Buffer buffer) voidJsonObject.writeToBuffer(Buffer buffer) Constructors in io.vertx.core.json with parameters of type BufferModifierConstructorDescriptionCreate an instance from a Buffer of JSON.JsonObject(Buffer buf) Create an instance from a buffer. -
Uses of Buffer in io.vertx.core.json.jackson
Methods in io.vertx.core.json.jackson that return BufferModifier and TypeMethodDescriptionMethods in io.vertx.core.json.jackson with parameters of type BufferModifier and TypeMethodDescriptionstatic com.fasterxml.jackson.core.JsonParserJacksonCodec.createParser(Buffer buf) <T> TDatabindCodec.fromBuffer(Buffer buf, com.fasterxml.jackson.core.type.TypeReference<T> typeRef) <T> TDatabindCodec.fromBuffer(Buffer buf, Class<T> clazz) JacksonCodec.fromBuffer(Buffer buf) <T> TJacksonCodec.fromBuffer(Buffer json, Class<T> clazz) -
Uses of Buffer in io.vertx.core.net
Methods in io.vertx.core.net that return BufferModifier and TypeMethodDescriptionPemKeyCertOptions.getCertValue()Get the first certificate as a bufferPemKeyCertOptions.getKeyValue()Get the first key as a bufferQuicConnectionClose.getReason()KeyStoreOptionsBase.getValue()Get the key store as a bufferMethods in io.vertx.core.net that return types with arguments of type BufferModifier and TypeMethodDescriptionPemKeyCertOptions.getCertValues()Get all the certificates as a list of bufferPemTrustOptions.getCertValues()SSLOptions.getCrlValues()Get the CRL valuesTCPSSLOptions.getCrlValues()Get the CRL valuesPemKeyCertOptions.getKeyValues()Get all the keys as a list of bufferNetSocket.proxyProtocolV2HeaderTLVs()NetSocket.proxyProtocolV2HeaderTLVs()Methods in io.vertx.core.net with parameters of type BufferModifier and TypeMethodDescriptionPemKeyCertOptions.addCertValue(Buffer certValue) Add a certificate as a bufferPemTrustOptions.addCertValue(Buffer certValue) Add a certificate valueClientOptionsBase.addCrlValue(Buffer crlValue) ClientSSLOptions.addCrlValue(Buffer crlValue) NetClientOptions.addCrlValue(Buffer crlValue) NetServerOptions.addCrlValue(Buffer crlValue) ServerSSLOptions.addCrlValue(Buffer crlValue) SSLOptions.addCrlValue(Buffer crlValue) Add a CRL valueTCPSSLOptions.addCrlValue(Buffer crlValue) Add a CRL valuePemKeyCertOptions.addKeyValue(Buffer keyValue) Add a key as a bufferPemKeyCertOptions.setCertValue(Buffer certValue) Set the first certificate as a buffer, replacing the previous certificates buffersPemKeyCertOptions.setKeyValue(Buffer keyValue) Set the first key a a buffer, replacing the previous keys buffersSet the close reasonSet the key store as a bufferSet the key store as a bufferSet the key store as a bufferNetSocket.upgradeToSsl(Buffer msg) LikeNetSocket.upgradeToSsl(SSLOptions, String, Buffer)with the default SSL options and without indicating a server name.NetSocket.upgradeToSsl(SSLOptions sslOptions, Buffer msg) LikeNetSocket.upgradeToSsl(SSLOptions, String, Buffer)without indicating a server nameNetSocket.upgradeToSsl(SSLOptions sslOptions, String serverName, Buffer upgrade) Upgrade the channel to use SSL/TLS, in other words proceeds to the TLS handshake.NetSocket.upgradeToSsl(String serverName, Buffer msg) LikeNetSocket.upgradeToSsl(SSLOptions, String, Buffer)with the default SSL options.QuicConnection.writeDatagram(Buffer buffer) Send a datagram.Method parameters in io.vertx.core.net with type arguments of type BufferModifier and TypeMethodDescriptionQuicConnection.datagramHandler(Handler<Buffer> handler) Set a handler called with the datagram addressed to this connection.Set the handler signaled with the data events the remote peer has sent.PemKeyCertOptions.setCertValues(List<Buffer> certValues) Set all the certificates as a list of bufferPemKeyCertOptions.setKeyValues(List<Buffer> keyValues) Set all the keys as a list of buffer -
Uses of Buffer in io.vertx.core.parsetools
Methods in io.vertx.core.parsetools that return BufferMethods in io.vertx.core.parsetools with parameters of type BufferModifier and TypeMethodDescriptionvoidRecordParser.delimitedMode(Buffer delim) Flip the parser into delimited mode, and where the delimiter can be represented by the delimiterdelim.voidThis method is called to provide the parser with data.static RecordParserRecordParser.newDelimited(Buffer delim) Create a newRecordParserinstance, initially in delimited mode, and where the delimiter can be represented by theBufferdelim.static RecordParserRecordParser.newDelimited(Buffer delim, Handler<Buffer> output) LikeRecordParser.newDelimited(Buffer)but set theoutputthat will receive whole records which have been parsed.static RecordParserRecordParser.newDelimited(Buffer delim, ReadStream<Buffer> stream) LikeRecordParser.newDelimited(Buffer)but wraps thestream.Handle aBuffer, pretty much like callingHandler.handle(Object).Method parameters in io.vertx.core.parsetools with type arguments of type BufferModifier and TypeMethodDescriptionstatic RecordParserRecordParser.newDelimited(Buffer delim, Handler<Buffer> output) LikeRecordParser.newDelimited(Buffer)but set theoutputthat will receive whole records which have been parsed.static RecordParserRecordParser.newDelimited(Buffer delim, ReadStream<Buffer> stream) LikeRecordParser.newDelimited(Buffer)but wraps thestream.static RecordParserRecordParser.newDelimited(String delim, Handler<Buffer> output) LikeRecordParser.newDelimited(String)but set theoutputthat will receive whole records which have been parsed.static RecordParserRecordParser.newDelimited(String delim, ReadStream<Buffer> stream) LikeRecordParser.newDelimited(String)but wraps thestream.static RecordParserLikeRecordParser.newFixed(int)but set theoutputthat will receive whole records which have been parsed.static RecordParserRecordParser.newFixed(int size, ReadStream<Buffer> stream) LikeRecordParser.newFixed(int)but wraps thestream.static JsonParserJsonParser.newParser(ReadStream<Buffer> stream) Create a newJsonParserinstance.void -
Uses of Buffer in io.vertx.core.spi.cluster
Methods in io.vertx.core.spi.cluster with parameters of type BufferModifier and TypeMethodDescriptionintNodeInfo.readFromBuffer(int start, Buffer buffer) intRegistrationInfo.readFromBuffer(int start, Buffer buffer) voidNodeInfo.writeToBuffer(Buffer buffer) voidRegistrationInfo.writeToBuffer(Buffer buffer) -
Uses of Buffer in io.vertx.core.spi.json
Methods in io.vertx.core.spi.json that return BufferModifier and TypeMethodDescriptiondefault BufferLikeJsonCodec.toString(Object)but with a jsonBufferLikeJsonCodec.toString(Object, boolean)but with a jsonBufferMethods in io.vertx.core.spi.json with parameters of type BufferModifier and TypeMethodDescription<T> TJsonCodec.fromBuffer(Buffer json, Class<T> clazz) LikeJsonCodec.fromString(String, Class)but with a jsonBuffer
HttpConnection.shutdown()