Class VertxBufferConverter
java.lang.Object
org.apache.camel.component.vertx.common.VertxBufferConverter
Converter methods to convert from / to Vert.x Buffer
-
Method Summary
Modifier and TypeMethodDescriptionstatic io.vertx.core.buffer.BuffertoBuffer(byte[] bytes) static io.vertx.core.buffer.BuffertoBuffer(io.netty.buffer.ByteBuf byteBuf) static io.vertx.core.buffer.BuffertoBuffer(InputStream inputStream) static io.vertx.core.buffer.Bufferstatic byte[]toBytes(io.vertx.core.buffer.Buffer buffer) static InputStreamtoInputStream(io.vertx.core.buffer.Buffer buffer) static org.apache.camel.StreamCachetoStreamCache(io.vertx.core.buffer.Buffer buffer) static StringtoString(io.vertx.core.buffer.Buffer buffer, org.apache.camel.Exchange exchange)
-
Method Details
-
toBuffer
@Converter public static io.vertx.core.buffer.Buffer toBuffer(String string, org.apache.camel.Exchange exchange) -
toBuffer
@Converter public static io.vertx.core.buffer.Buffer toBuffer(byte[] bytes) -
toBuffer
@Converter public static io.vertx.core.buffer.Buffer toBuffer(io.netty.buffer.ByteBuf byteBuf) -
toBuffer
@Converter public static io.vertx.core.buffer.Buffer toBuffer(InputStream inputStream) throws IOException - Throws:
IOException
-
toString
@Converter public static String toString(io.vertx.core.buffer.Buffer buffer, org.apache.camel.Exchange exchange) -
toBytes
@Converter public static byte[] toBytes(io.vertx.core.buffer.Buffer buffer) -
toInputStream
-
toStreamCache
@Converter public static org.apache.camel.StreamCache toStreamCache(io.vertx.core.buffer.Buffer buffer)
-