@Converter public final class NIOConverter extends Object
Modifier and Type | Method and Description |
---|---|
static byte[] |
toByteArray(ByteBuffer buffer) |
static ByteBuffer |
toByteBuffer(byte[] data) |
static ByteBuffer |
toByteBuffer(Double value) |
static ByteBuffer |
toByteBuffer(File file) |
static ByteBuffer |
toByteBuffer(Float value) |
static ByteBuffer |
toByteBuffer(Integer value) |
static ByteBuffer |
toByteBuffer(Long value) |
static ByteBuffer |
toByteBuffer(Short value) |
static ByteBuffer |
toByteBuffer(String value,
Exchange exchange) |
static InputStream |
toInputStream(ByteBuffer bufferbuffer) |
static String |
toString(ByteBuffer buffer,
Exchange exchange) |
@Converter public static byte[] toByteArray(ByteBuffer buffer)
@Converter public static String toString(ByteBuffer buffer, Exchange exchange) throws IOException
IOException
@Converter public static ByteBuffer toByteBuffer(byte[] data)
@Converter public static ByteBuffer toByteBuffer(File file) throws IOException
IOException
@Converter public static ByteBuffer toByteBuffer(String value, Exchange exchange)
@Converter public static ByteBuffer toByteBuffer(Short value)
@Converter public static ByteBuffer toByteBuffer(Integer value)
@Converter public static ByteBuffer toByteBuffer(Long value)
@Converter public static ByteBuffer toByteBuffer(Float value)
@Converter public static ByteBuffer toByteBuffer(Double value)
@Converter public static InputStream toInputStream(ByteBuffer bufferbuffer)
Apache Camel