Class NIOConverter

java.lang.Object
org.apache.camel.converter.NIOConverter

@Converter(generateBulkLoader=true) public final class NIOConverter extends Object
Some core java.nio based Type Converters
  • Method Details

    • toByteArray

      @Converter(order=1) public static byte[] toByteArray(ByteBuffer buffer)
    • toString

      @Converter(order=2) public static String toString(ByteBuffer buffer, org.apache.camel.Exchange exchange) throws IOException
      Throws:
      IOException
    • toByteBuffer

      @Converter(order=3) public static ByteBuffer toByteBuffer(byte[] data)
    • toByteBuffer

      @Converter(order=4) public static ByteBuffer toByteBuffer(ByteArrayOutputStream baos)
    • toByteBuffer

      @Converter(order=5) public static ByteBuffer toByteBuffer(File file) throws IOException
      Throws:
      IOException
    • toByteBuffer

      @Converter(order=6) public static ByteBuffer toByteBuffer(String value, org.apache.camel.Exchange exchange)
    • toByteBuffer

      @Converter(order=7) public static ByteBuffer toByteBuffer(Short value)
    • toByteBuffer

      @Converter(order=8) public static ByteBuffer toByteBuffer(Integer value)
    • toByteBuffer

      @Converter(order=9) public static ByteBuffer toByteBuffer(Long value)
    • toByteBuffer

      @Converter(order=10) public static ByteBuffer toByteBuffer(Float value)
    • toByteBuffer

      @Converter(order=11) public static ByteBuffer toByteBuffer(Double value)
    • toInputStream

      @Converter(order=12) public static InputStream toInputStream(ByteBuffer bufferbuffer)