org.apache.camel.converter
Class NIOConverter

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

@Converter
public final class NIOConverter
extends Object

Some core java.nio based Type Converters

Version:
$Revision: 19409 $

Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toByteArray

@Converter
public static byte[] toByteArray(ByteBuffer buffer)

toString

@Converter
public static String toString(ByteBuffer buffer,
                                        Exchange exchange)
                       throws IOException
Throws:
IOException

toByteBuffer

@Converter
public static ByteBuffer toByteBuffer(byte[] data)

toByteBuffer

@Converter
public static ByteBuffer toByteBuffer(File file)
                               throws IOException
Throws:
IOException

toByteBuffer

@Converter
public static ByteBuffer toByteBuffer(String value,
                                                Exchange exchange)

toByteBuffer

@Converter
public static ByteBuffer toByteBuffer(Short value)

toByteBuffer

@Converter
public static ByteBuffer toByteBuffer(Integer value)

toByteBuffer

@Converter
public static ByteBuffer toByteBuffer(Long value)

toByteBuffer

@Converter
public static ByteBuffer toByteBuffer(Float value)

toByteBuffer

@Converter
public static ByteBuffer toByteBuffer(Double value)

toInputStream

@Converter
public static InputStream toInputStream(ByteBuffer bufferbuffer)


Apache CAMEL