camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Camel > List of Type Conversions
Date Mon, 25 Oct 2010 07:21:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/1810/9/1/_/styles/combined.css?spaceKey=CAMEL&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
     <h2><s>List of Type Conversions</s></h2>
     <h4>Page <b>removed</b> by             <a href="https://cwiki.apache.org/confluence/display/~davsclaus">Claus
Ibsen</a>
    </h4>
     <br/>
     <div class="notificationGreySide">
         <p>The maven-camel-converters plugin allows you to generate a list of all the
possible type conversions available in Camel. Run the following command at the root of the
source tree to generate the list in target/camel-reports/camel-converters.txt</p>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
mvn org.apache.camel:maven-camel-converters:report
</pre>
</div></div>

<p>The output from this plugin as of Camel 1.5 is</p>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
Camel Type Converter definitions
-------------------------------------------------------------------------------
<span class="code-object">byte</span>[]=&gt;InputStream [StaticMethodTypeConverter(org.apache.camel.converter.IOConverter.toInputStream())]
<span class="code-object">byte</span>[]=&gt;<span class="code-object">String</span>
[StaticMethodTypeConverter(org.apache.camel.converter.IOConverter.toString())]
<span class="code-object">byte</span>[]=&gt;ByteBuffer [StaticMethodTypeConverter(org.apache.camel.converter.NIOConverter.toByteBuffer())]
<span class="code-object">byte</span>[]=&gt;StreamSource [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.XmlConverter.toStreamSource())]
<span class="code-object">byte</span>[]=&gt;BytesSource [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.XmlConverter.toSource())]
<span class="code-object">byte</span>[]=&gt;Document [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.XmlConverter.toDOMDocument())]
<span class="code-object">char</span>[]=&gt;<span class="code-object">String</span>
[StaticMethodTypeConverter(org.apache.camel.converter.ObjectConverter.fromCharArray())]
<span class="code-object">Object</span>[]=&gt;List [StaticMethodTypeConverter(org.apache.camel.converter.CollectionConverter.toList())]
<span class="code-object">Object</span>[]=&gt;Set [StaticMethodTypeConverter(org.apache.camel.converter.CollectionConverter.toSet())]
BufferedReader=&gt;InputStream [StaticMethodTypeConverter(org.apache.camel.converter.IOConverter.toInputStream())]
BufferedReader=&gt;<span class="code-object">String</span> [StaticMethodTypeConverter(org.apache.camel.converter.IOConverter.toString())]
File=&gt;BufferedReader [StaticMethodTypeConverter(org.apache.camel.converter.IOConverter.toReader())]
File=&gt;BufferedWriter [StaticMethodTypeConverter(org.apache.camel.converter.IOConverter.toWriter())]
File=&gt;InputStream [StaticMethodTypeConverter(org.apache.camel.converter.IOConverter.toInputStream())]
File=&gt;OutputStream [StaticMethodTypeConverter(org.apache.camel.converter.IOConverter.toOutputStream())]
File=&gt;<span class="code-object">String</span> [StaticMethodTypeConverter(org.apache.camel.converter.IOConverter.toString())]
File=&gt;ByteBuffer [StaticMethodTypeConverter(org.apache.camel.converter.NIOConverter.toByteBuffer())]
File=&gt;StreamSource [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.XmlConverter.toStreamSource())]
File=&gt;Document [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.XmlConverter.toDOMDocument())]
InputStream=&gt;<span class="code-object">byte</span>[] [StaticMethodTypeConverter(org.apache.camel.converter.IOConverter.toBytes())]
InputStream=&gt;ObjectInput [StaticMethodTypeConverter(org.apache.camel.converter.IOConverter.toObjectInput())]
InputStream=&gt;Reader [StaticMethodTypeConverter(org.apache.camel.converter.IOConverter.toReader())]
InputStream=&gt;<span class="code-object">String</span> [StaticMethodTypeConverter(org.apache.camel.converter.IOConverter.toString())]
InputStream=&gt;XMLEventReader [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.StaxConverter.createXMLEventReader())]
InputStream=&gt;XMLStreamReader [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.StaxConverter.createXMLStreamReader())]
InputStream=&gt;SAXSource [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.XmlConverter.toSAXSource())]
InputStream=&gt;StreamSource [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.XmlConverter.toStreamSource())]
InputStream=&gt;StreamCache [InstanceMethodTypeConverter(org.apache.camel.converter.stream.StreamCacheConverter.convertToStreamCache())]
InputStream=&gt;Document [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.XmlConverter.toDOMDocument())]
OutputStream=&gt;ObjectOutput [StaticMethodTypeConverter(org.apache.camel.converter.IOConverter.toObjectOutput())]
OutputStream=&gt;Writer [StaticMethodTypeConverter(org.apache.camel.converter.IOConverter.toWriter())]
OutputStream=&gt;XMLEventWriter [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.StaxConverter.createXMLEventWriter())]
OutputStream=&gt;XMLStreamWriter [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.StaxConverter.createXMLStreamWriter())]
Reader=&gt;<span class="code-object">String</span> [StaticMethodTypeConverter(org.apache.camel.converter.IOConverter.toString())]
Reader=&gt;XMLEventReader [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.StaxConverter.createXMLEventReader())]
Reader=&gt;XMLStreamReader [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.StaxConverter.createXMLStreamReader())]
Reader=&gt;StreamSource [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.XmlConverter.toStreamSource())]
Reader=&gt;Document [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.XmlConverter.toDOMDocument())]
Writer=&gt;XMLEventWriter [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.StaxConverter.createXMLEventWriter())]
Writer=&gt;XMLStreamWriter [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.StaxConverter.createXMLStreamWriter())]
<span class="code-object">Boolean</span>=&gt;<span class="code-object">Boolean</span>
[StaticMethodTypeConverter(org.apache.camel.converter.ObjectConverter.toBoolean())]
<span class="code-object">Double</span>=&gt;ByteBuffer [StaticMethodTypeConverter(org.apache.camel.converter.NIOConverter.toByteBuffer())]
<span class="code-object">Float</span>=&gt;ByteBuffer [StaticMethodTypeConverter(org.apache.camel.converter.NIOConverter.toByteBuffer())]
<span class="code-object">Integer</span>=&gt;ByteBuffer [StaticMethodTypeConverter(org.apache.camel.converter.NIOConverter.toByteBuffer())]
<span class="code-object">Long</span>=&gt;ByteBuffer [StaticMethodTypeConverter(org.apache.camel.converter.NIOConverter.toByteBuffer())]
<span class="code-object">Object</span>=&gt;<span class="code-object">boolean</span>
[StaticMethodTypeConverter(org.apache.camel.converter.ObjectConverter.toBool())]
<span class="code-object">Object</span>=&gt;<span class="code-object">Boolean</span>
[StaticMethodTypeConverter(org.apache.camel.converter.ObjectConverter.toBoolean())]
<span class="code-object">Object</span>=&gt;<span class="code-object">Byte</span>
[StaticMethodTypeConverter(org.apache.camel.converter.ObjectConverter.toByte())]
<span class="code-object">Object</span>=&gt;<span class="code-object">Double</span>
[StaticMethodTypeConverter(org.apache.camel.converter.ObjectConverter.toDouble())]
<span class="code-object">Object</span>=&gt;<span class="code-object">Float</span>
[StaticMethodTypeConverter(org.apache.camel.converter.ObjectConverter.toFloat())]
<span class="code-object">Object</span>=&gt;<span class="code-object">Integer</span>
[StaticMethodTypeConverter(org.apache.camel.converter.ObjectConverter.toInteger())]
<span class="code-object">Object</span>=&gt;<span class="code-object">Long</span>
[StaticMethodTypeConverter(org.apache.camel.converter.ObjectConverter.toLong())]
<span class="code-object">Object</span>=&gt;<span class="code-object">Short</span>
[StaticMethodTypeConverter(org.apache.camel.converter.ObjectConverter.toShort())]
<span class="code-object">Object</span>=&gt;Iterator [StaticMethodTypeConverter(org.apache.camel.converter.ObjectConverter.iterator())]
<span class="code-object">Short</span>=&gt;ByteBuffer [StaticMethodTypeConverter(org.apache.camel.converter.NIOConverter.toByteBuffer())]
<span class="code-object">String</span>=&gt;<span class="code-object">byte</span>[]
[StaticMethodTypeConverter(org.apache.camel.converter.ObjectConverter.toByteArray())]
<span class="code-object">String</span>=&gt;<span class="code-object">char</span>[]
[StaticMethodTypeConverter(org.apache.camel.converter.ObjectConverter.toCharArray())]
<span class="code-object">String</span>=&gt;File [StaticMethodTypeConverter(org.apache.camel.converter.IOConverter.toFile())]
<span class="code-object">String</span>=&gt;InputStream [StaticMethodTypeConverter(org.apache.camel.converter.IOConverter.toInputStream())]
<span class="code-object">String</span>=&gt;StringReader [StaticMethodTypeConverter(org.apache.camel.converter.IOConverter.toReader())]
<span class="code-object">String</span>=&gt;ByteBuffer [StaticMethodTypeConverter(org.apache.camel.converter.NIOConverter.toByteBuffer())]
<span class="code-object">String</span>=&gt;DOMSource [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.XmlConverter.toDOMSource())]
<span class="code-object">String</span>=&gt;SAXSource [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.XmlConverter.toSAXSource())]
<span class="code-object">String</span>=&gt;StringSource [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.XmlConverter.toSource())]
<span class="code-object">String</span>=&gt;Document [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.XmlConverter.toDOMDocument())]
URL=&gt;InputStream [StaticMethodTypeConverter(org.apache.camel.converter.IOConverter.toInputStream())]
URL=&gt;<span class="code-object">String</span> [StaticMethodTypeConverter(org.apache.camel.converter.IOConverter.toString())]
ByteBuffer=&gt;<span class="code-object">byte</span>[] [StaticMethodTypeConverter(org.apache.camel.converter.NIOConverter.toByteArray())]
ByteBuffer=&gt;InputStream [StaticMethodTypeConverter(org.apache.camel.converter.NIOConverter.toInputStream())]
ByteBuffer=&gt;<span class="code-object">String</span> [StaticMethodTypeConverter(org.apache.camel.converter.NIOConverter.toString())]
ByteBuffer=&gt;StreamSource [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.XmlConverter.toStreamSource())]
Collection=&gt;<span class="code-object">Object</span>[] [StaticMethodTypeConverter(org.apache.camel.converter.CollectionConverter.toArray())]
Collection=&gt;List [StaticMethodTypeConverter(org.apache.camel.converter.CollectionConverter.toList())]
Collection=&gt;Set [StaticMethodTypeConverter(org.apache.camel.converter.CollectionConverter.toSet())]
Map=&gt;HashMap [StaticMethodTypeConverter(org.apache.camel.converter.CollectionConverter.toHashMap())]
Map=&gt;Hashtable [StaticMethodTypeConverter(org.apache.camel.converter.CollectionConverter.toHashtable())]
Map=&gt;Properties [StaticMethodTypeConverter(org.apache.camel.converter.CollectionConverter.toProperties())]
Map=&gt;Set [StaticMethodTypeConverter(org.apache.camel.converter.CollectionConverter.toSet())]
XMLStreamReader=&gt;XMLEventReader [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.StaxConverter.createXMLEventReader())]
Result=&gt;XMLEventWriter [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.StaxConverter.createXMLEventWriter())]
Result=&gt;XMLStreamWriter [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.StaxConverter.createXMLStreamWriter())]
Source=&gt;Reader [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.XmlConverter.toReaderFromSource())]
Source=&gt;<span class="code-object">String</span> [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.XmlConverter.toString())]
Source=&gt;XMLEventReader [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.StaxConverter.createXMLEventReader())]
Source=&gt;XMLStreamReader [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.StaxConverter.createXMLStreamReader())]
Source=&gt;DOMSource [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.XmlConverter.toDOMSource())]
Source=&gt;SAXSource [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.XmlConverter.toSAXSource())]
Source=&gt;StreamSource [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.XmlConverter.toStreamSource())]
Source=&gt;Document [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.XmlConverter.toDOMDocument())]
Source=&gt;Element [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.XmlConverter.toDOMElement())]
Source=&gt;Node [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.XmlConverter.toDOMNode())]
DOMSource=&gt;InputStream [StaticMethodTypeConverter(org.apache.camel.converter.IOConverter.toInputStrean())]
DOMSource=&gt;SAXSource [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.XmlConverter.toSAXSourceFromDOM())]
DOMSource=&gt;StreamSource [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.XmlConverter.toStreamSourceFromDOM())]
SAXSource=&gt;DOMSource [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.XmlConverter.toDOMSourceFromSAX())]
SAXSource=&gt;StreamSource [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.XmlConverter.toStreamSourceFromSAX())]
SAXSource=&gt;Node [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.XmlConverter.toDOMNodeFromSAX())]
StreamSource=&gt;DOMSource [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.XmlConverter.toDOMSourceFromStream())]
StreamSource=&gt;SAXSource [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.XmlConverter.toSAXSourceFromStream())]
StreamSource=&gt;StreamCache [InstanceMethodTypeConverter(org.apache.camel.converter.stream.StreamCacheConverter.convertToStreamCache())]
Document=&gt;DOMSource [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.XmlConverter.toSource())]
Node=&gt;<span class="code-object">String</span> [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.XmlConverter.toString())]
Node=&gt;Source [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.XmlConverter.toSource())]
Node=&gt;Document [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.XmlConverter.toDOMDocument())]
Node=&gt;Element [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.XmlConverter.toDOMElement())]
NodeList=&gt;<span class="code-object">String</span> [StaticMethodTypeConverter(org.apache.camel.converter.jaxp.DomConverter.toString())]
InputSource=&gt;Document [InstanceMethodTypeConverter(org.apache.camel.converter.jaxp.XmlConverter.toDOMDocument())]
-------------------------------------------------------------------------------
Found 107 type conversion methods in 8 classes from 3 packages.
</pre>
</div></div>
     </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message