org.apache.camel.component.netty
Class NettyConverter

java.lang.Object
  extended by org.apache.camel.component.netty.NettyConverter

@Converter
public final class NettyConverter
extends Object

A set of converter methods for working with Netty types

Version:

Method Summary
static byte[] toByteArray(org.jboss.netty.buffer.ChannelBuffer buffer)
           
static org.jboss.netty.buffer.ChannelBuffer toByteBuffer(byte[] bytes)
           
static InputStream toInputStream(org.jboss.netty.buffer.ChannelBuffer buffer)
           
static ObjectInput toObjectInput(org.jboss.netty.buffer.ChannelBuffer buffer)
           
static String toString(org.jboss.netty.buffer.ChannelBuffer 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(org.jboss.netty.buffer.ChannelBuffer buffer)

toString

@Converter
public static String toString(org.jboss.netty.buffer.ChannelBuffer buffer,
                                        Exchange exchange)

toInputStream

@Converter
public static InputStream toInputStream(org.jboss.netty.buffer.ChannelBuffer buffer)

toObjectInput

@Converter
public static ObjectInput toObjectInput(org.jboss.netty.buffer.ChannelBuffer buffer)
                                 throws IOException
Throws:
IOException

toByteBuffer

@Converter
public static org.jboss.netty.buffer.ChannelBuffer toByteBuffer(byte[] bytes)


Apache CAMEL