org.apache.camel.converter
Class NIOConverter
java.lang.Object
org.apache.camel.converter.NIOConverter
public final class NIOConverter
- extends Object
Some core java.nio based
Type Converters
- Version:
- $Revision: 1202 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
toByteArray
public static byte[] toByteArray(ByteBuffer buffer)
toString
public static String toString(ByteBuffer buffer,
Exchange exchange)
toByteBuffer
public static ByteBuffer toByteBuffer(byte[] data)
toByteBuffer
public static ByteBuffer toByteBuffer(File file)
throws IOException
- Throws:
IOException
toByteBuffer
public static ByteBuffer toByteBuffer(String value,
Exchange exchange)
toByteBuffer
public static ByteBuffer toByteBuffer(Short value)
toByteBuffer
public static ByteBuffer toByteBuffer(Integer value)
toByteBuffer
public static ByteBuffer toByteBuffer(Long value)
toByteBuffer
public static ByteBuffer toByteBuffer(Float value)
toByteBuffer
public static ByteBuffer toByteBuffer(Double value)
toInputStream
public static InputStream toInputStream(ByteBuffer bufferbuffer)
Copyright © 2010 IONA Open Source Community. All Rights Reserved.