org.apache.camel.converter
Class NIOConverter
java.lang.Object
org.apache.camel.converter.NIOConverter
@Converter
public final class NIOConverter
- extends Object
Some core java.nio based
Type Converters
- Version:
- $Revision: 946891 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.