|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Converter | |
---|---|
org.apache.camel.converter | A set of helper classes for converting from different types of Java object to be used by the Type Conversion Support |
org.apache.camel.converter.jaxp | A number of JAXP related helper classes for converting to and from various JAXP related classes like Document and Source to be used by a TypeConverter |
Uses of Converter in org.apache.camel.converter |
---|
Classes in org.apache.camel.converter with annotations of type Converter | |
---|---|
class |
CollectionConverter
Some core java.util Collection based Type Converters |
class |
IOConverter
Some core java.io based Type Converters |
class |
NIOConverter
Some core java.nio based Type Converters |
class |
ObjectConverter
Some core java.lang based Type Converters |
Methods in org.apache.camel.converter with annotations of type Converter | |
---|---|
static Iterator |
ObjectConverter.iterator(Object value)
Creates an iterator over the value if the value is a collection, an Object[] or a primitive type array; otherwise to simplify the caller's code, we just create a singleton collection iterator over a single value |
static Object[] |
CollectionConverter.toArray(Collection value)
Converts a collection to an array |
static boolean |
ObjectConverter.toBool(Object value)
Converts the given value to a boolean, handling strings or Boolean objects; otherwise returning false if the value could not be converted to a boolean |
static Boolean |
ObjectConverter.toBoolean(Object value)
Converts the given value to a Boolean, handling strings or Boolean objects; otherwise returning null if the value cannot be converted to a boolean |
static byte[] |
NIOConverter.toByteArray(ByteBuffer buffer)
|
static byte[] |
IOConverter.toByteArray(String text)
|
static ByteBuffer |
NIOConverter.toByteBuffer(byte[] data)
|
static ByteBuffer |
NIOConverter.toByteBuffer(Double value)
|
static ByteBuffer |
NIOConverter.toByteBuffer(Float value)
|
static ByteBuffer |
NIOConverter.toByteBuffer(Integer value)
|
static ByteBuffer |
NIOConverter.toByteBuffer(Long value)
|
static ByteBuffer |
NIOConverter.toByteBuffer(Short value)
|
static ByteBuffer |
NIOConverter.toByteBuffer(String value)
|
static InputStream |
IOConverter.toInputStream(byte[] data)
|
static InputStream |
IOConverter.toInputStream(File file)
|
static InputStream |
IOConverter.toInputStream(String text)
|
static List |
CollectionConverter.toList(Object[] array)
Converts an array to a collection |
static OutputStream |
IOConverter.toOutputStream(File file)
|
static BufferedReader |
IOConverter.toReader(File file)
|
static Reader |
IOConverter.toReader(InputStream in)
|
static StringReader |
IOConverter.toReader(String text)
|
static Set |
CollectionConverter.toSet(Collection collection)
|
static Set |
CollectionConverter.toSet(Map map)
|
static Set |
CollectionConverter.toSet(Object[] array)
|
static String |
IOConverter.toString(BufferedReader reader)
|
static String |
IOConverter.toString(byte[] data)
|
static String |
IOConverter.toString(InputStream in)
|
static String |
IOConverter.toString(Reader reader)
|
static BufferedWriter |
IOConverter.toWriter(File file)
|
static Writer |
IOConverter.toWriter(OutputStream out)
|
Uses of Converter in org.apache.camel.converter.jaxp |
---|
Classes in org.apache.camel.converter.jaxp with annotations of type Converter | |
---|---|
class |
XmlConverter
A helper class to transform to and from various JAXB types such as Source and Document |
Methods in org.apache.camel.converter.jaxp with annotations of type Converter | |
---|---|
Document |
XmlConverter.toDOMDocument(byte[] data)
Converts the given data to a DOM document |
Document |
XmlConverter.toDOMDocument(File file)
Converts the given File to a DOM document |
Document |
XmlConverter.toDOMDocument(InputSource in)
Converts the given InputSource to a DOM document |
Document |
XmlConverter.toDOMDocument(InputStream in)
Converts the given InputStream to a DOM document |
Document |
XmlConverter.toDOMDocument(Node node)
Create a DOM document from the given Node. |
Document |
XmlConverter.toDOMDocument(Source source)
Create a DOM document from the given source. |
Document |
XmlConverter.toDOMDocument(String text)
Converts the given String to a DOM document |
Element |
XmlConverter.toDOMElement(Node node)
Create a DOM element from the DOM node. |
Element |
XmlConverter.toDOMElement(Source source)
Create a DOM element from the given source. |
Node |
XmlConverter.toDOMNode(Source source)
Converts the given TRaX Source into a W3C DOM node |
Node |
XmlConverter.toDOMNodeFromSAX(SAXSource source)
|
DOMSource |
XmlConverter.toDOMSource(Source source)
Converts the source instance to a DOMSource or returns null if the conversion is not
supported (making it easy to derive from this class to add new kinds of conversion). |
DOMSource |
XmlConverter.toDOMSourceFromSAX(SAXSource source)
|
DOMSource |
XmlConverter.toDOMSourceFromStream(StreamSource source)
|
Reader |
XmlConverter.toReaderFromSource(Source src)
|
SAXSource |
XmlConverter.toSAXSource(Source source)
Converts the source instance to a SAXSource or returns null if the conversion is not
supported (making it easy to derive from this class to add new kinds of conversion). |
SAXSource |
XmlConverter.toSAXSourceFromDOM(DOMSource source)
|
SAXSource |
XmlConverter.toSAXSourceFromStream(StreamSource source)
|
BytesSource |
XmlConverter.toSource(byte[] data)
Converts the given byte[] to a Source |
DOMSource |
XmlConverter.toSource(Document document)
Converts the given Document to a Source |
StringSource |
XmlConverter.toSource(String data)
Converts the given String to a Source |
StreamSource |
XmlConverter.toStreamSource(Source source)
|
StreamSource |
XmlConverter.toStreamSourceFromDOM(DOMSource source)
|
StreamSource |
XmlConverter.toStreamSourceFromSAX(SAXSource source)
|
String |
XmlConverter.toString(Node node)
Converts the given input Node into text |
String |
XmlConverter.toString(Source source)
Converts the given input Source into text |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |