org.apache.camel.component.mina
Class MinaConverter

java.lang.Object
  extended by org.apache.camel.component.mina.MinaConverter

@Converter
public final class MinaConverter
extends Object

A set of converter methods for working with MINA types

Version:

Method Summary
static byte[] toByteArray(org.apache.mina.common.ByteBuffer buffer)
           
static org.apache.mina.common.ByteBuffer toByteBuffer(byte[] bytes)
           
static InputStream toInputStream(org.apache.mina.common.ByteBuffer buffer)
           
static ObjectInput toObjectInput(org.apache.mina.common.ByteBuffer buffer)
           
static String toString(org.apache.mina.common.ByteBuffer buffer, org.apache.camel.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(org.apache.mina.common.ByteBuffer buffer)

toString

@Converter
public static String toString(org.apache.mina.common.ByteBuffer buffer,
                                        org.apache.camel.Exchange exchange)

toInputStream

@Converter
public static InputStream toInputStream(org.apache.mina.common.ByteBuffer buffer)

toObjectInput

@Converter
public static ObjectInput toObjectInput(org.apache.mina.common.ByteBuffer buffer)
                                 throws IOException
Throws:
IOException

toByteBuffer

@Converter
public static org.apache.mina.common.ByteBuffer toByteBuffer(byte[] bytes)


Apache Camel