|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.converter.jaxp.XmlConverter
@Converter public class XmlConverter
A helper class to transform to and from various JAXB types such as Source
and Document
Field Summary | |
---|---|
static String |
DEFAULT_CHARSET_PROPERTY
Deprecated. |
static String |
defaultCharset
|
static String |
OUTPUT_PROPERTIES_PREFIX
|
Constructor Summary | |
---|---|
XmlConverter()
|
|
XmlConverter(DocumentBuilderFactory documentBuilderFactory)
|
Method Summary | |
---|---|
Document |
createDocument()
|
DocumentBuilder |
createDocumentBuilder()
|
DocumentBuilderFactory |
createDocumentBuilderFactory()
|
Transformer |
createTransfomer()
Deprecated. use createTransformer() , will be removed in Camel 3.0 |
Transformer |
createTransformer()
|
TransformerFactory |
createTransformerFactory()
|
Properties |
defaultOutputProperties()
Returns the default set of output properties for conversions. |
DocumentBuilderFactory |
getDocumentBuilderFactory()
|
TransformerFactory |
getTransformerFactory()
|
void |
setDocumentBuilderFactory(DocumentBuilderFactory documentBuilderFactory)
|
void |
setTransformerFactory(TransformerFactory transformerFactory)
|
Boolean |
toBoolean(NodeList list)
Converts the given NodeList to a boolean |
byte[] |
toByteArray(Source source,
Exchange exchange)
Converts the given input Source into bytes |
BytesSource |
toBytesSource(byte[] data)
Converts the given byte[] to a Source |
Document |
toDOMDocument(byte[] data)
Converts the given data to a DOM document |
Document |
toDOMDocument(File file)
Converts the given File to a DOM document |
Document |
toDOMDocument(InputSource in)
Converts the given InputSource to a DOM document |
Document |
toDOMDocument(InputStream in)
Converts the given InputStream to a DOM document |
Document |
toDOMDocument(Node node)
Create a DOM document from the given Node. |
Document |
toDOMDocument(Reader in)
Converts the given InputStream to a DOM document |
Document |
toDOMDocument(Source source)
Create a DOM document from the given source. |
Document |
toDOMDocument(String text)
Converts the given String to a DOM document |
Element |
toDOMElement(Node node)
Create a DOM element from the DOM node. |
Element |
toDOMElement(Source source)
Create a DOM element from the given source. |
Node |
toDOMNode(Source source)
Converts the given TRaX Source into a W3C DOM node |
Node |
toDOMNodeFromSAX(SAXSource source)
|
DOMSource |
toDOMSource(byte[] bytes)
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 |
toDOMSource(Document document)
Converts the given Document to a Source |
DOMSource |
toDOMSource(InputStream is)
|
DOMSource |
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 |
toDOMSource(String text)
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 |
toDOMSourceFromSAX(SAXSource source)
|
DOMSource |
toDOMSourceFromStream(StreamSource source)
|
InputSource |
toInputSource(InputStream is)
|
InputStream |
toInputStream(Document dom)
Deprecated. |
InputStream |
toInputStream(Document dom,
Exchange exchange)
|
InputStream |
toInputStream(DOMSource source)
Deprecated. |
InputStream |
toInputStream(DOMSource source,
Exchange exchange)
|
Reader |
toReaderFromSource(Source src)
Deprecated. |
Reader |
toReaderFromSource(Source src,
Exchange exchange)
|
void |
toResult(Source source,
Result result)
Converts the given input Source into the required result |
void |
toResult(Source source,
Result result,
Properties outputProperties)
Converts the given input Source into the required result |
SAXSource |
toSAXSource(InputStream source)
Deprecated. |
SAXSource |
toSAXSource(InputStream source,
Exchange exchange)
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 |
toSAXSource(Source source)
Deprecated. |
SAXSource |
toSAXSource(Source source,
Exchange exchange)
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 |
toSAXSource(String source)
Deprecated. |
SAXSource |
toSAXSource(String source,
Exchange exchange)
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 |
toSAXSourceFromDOM(DOMSource source)
Deprecated. |
SAXSource |
toSAXSourceFromDOM(DOMSource source,
Exchange exchange)
|
SAXSource |
toSAXSourceFromStream(StreamSource source)
|
DOMSource |
toSource(Document document)
Deprecated. use toDOMSource instead |
Source |
toSource(Node node)
Converts the given Node to a Source |
Source |
toSource(String data)
Converts the given String to a Source |
StreamSource |
toStreamSource(byte[] in,
Exchange exchange)
|
StreamSource |
toStreamSource(ByteBuffer in,
Exchange exchange)
|
StreamSource |
toStreamSource(File in)
|
StreamSource |
toStreamSource(InputStream in)
|
StreamSource |
toStreamSource(Reader in)
|
StreamSource |
toStreamSource(Source source)
Deprecated. |
StreamSource |
toStreamSource(Source source,
Exchange exchange)
|
StreamSource |
toStreamSourceFromDOM(DOMSource source)
Deprecated. |
StreamSource |
toStreamSourceFromDOM(DOMSource source,
Exchange exchange)
|
StreamSource |
toStreamSourceFromSAX(SAXSource source)
Deprecated. |
StreamSource |
toStreamSourceFromSAX(SAXSource source,
Exchange exchange)
|
String |
toString(Node node)
Deprecated. |
String |
toString(Node node,
Exchange exchange)
Converts the given input Node into text |
String |
toString(Source source)
Deprecated. |
String |
toString(Source source,
Exchange exchange)
Converts the given input Source into text |
StringSource |
toStringSource(String data)
Converts the given String to a Source |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@Deprecated public static final String DEFAULT_CHARSET_PROPERTY
public static final String OUTPUT_PROPERTIES_PREFIX
public static String defaultCharset
Constructor Detail |
---|
public XmlConverter()
public XmlConverter(DocumentBuilderFactory documentBuilderFactory)
Method Detail |
---|
public Properties defaultOutputProperties()
public void toResult(Source source, Result result) throws TransformerException
TransformerException
public void toResult(Source source, Result result, Properties outputProperties) throws TransformerException
TransformerException
@Converter public Boolean toBoolean(NodeList list)
@Converter public BytesSource toBytesSource(byte[] data)
@Converter public StringSource toStringSource(String data)
@Deprecated public DOMSource toSource(Document document)
@Converter public DOMSource toDOMSource(Document document)
@Converter public Source toSource(Node node)
@Converter public Source toSource(String data)
@Deprecated public String toString(Source source) throws TransformerException
TransformerException
@Converter public String toString(Source source, Exchange exchange) throws TransformerException
TransformerException
@Converter public byte[] toByteArray(Source source, Exchange exchange) throws TransformerException
TransformerException
@Deprecated public String toString(Node node) throws TransformerException
TransformerException
@Converter public String toString(Node node, Exchange exchange) throws TransformerException
TransformerException
@Converter public DOMSource toDOMSource(Source source) throws ParserConfigurationException, IOException, SAXException, TransformerException
DOMSource
or returns null if the conversion is not
supported (making it easy to derive from this class to add new kinds of conversion).
ParserConfigurationException
IOException
SAXException
TransformerException
@Converter public DOMSource toDOMSource(String text) throws ParserConfigurationException, IOException, SAXException, TransformerException
DOMSource
or returns null if the conversion is not
supported (making it easy to derive from this class to add new kinds of conversion).
ParserConfigurationException
IOException
SAXException
TransformerException
@Converter public DOMSource toDOMSource(byte[] bytes) throws IOException, SAXException, ParserConfigurationException
DOMSource
or returns null if the conversion is not
supported (making it easy to derive from this class to add new kinds of conversion).
IOException
SAXException
ParserConfigurationException
@Deprecated public SAXSource toSAXSource(String source) throws IOException, SAXException, TransformerException
SAXSource
or returns null if the conversion is not
supported (making it easy to derive from this class to add new kinds of conversion).
IOException
SAXException
TransformerException
@Converter public SAXSource toSAXSource(String source, Exchange exchange) throws IOException, SAXException, TransformerException
SAXSource
or returns null if the conversion is not
supported (making it easy to derive from this class to add new kinds of conversion).
IOException
SAXException
TransformerException
@Deprecated public SAXSource toSAXSource(InputStream source) throws IOException, SAXException, TransformerException
SAXSource
or returns null if the conversion is not
supported (making it easy to derive from this class to add new kinds of conversion).
IOException
SAXException
TransformerException
@Converter public SAXSource toSAXSource(InputStream source, Exchange exchange) throws IOException, SAXException, TransformerException
SAXSource
or returns null if the conversion is not
supported (making it easy to derive from this class to add new kinds of conversion).
IOException
SAXException
TransformerException
@Deprecated public SAXSource toSAXSource(Source source) throws IOException, SAXException, TransformerException
SAXSource
or returns null if the conversion is not
supported (making it easy to derive from this class to add new kinds of conversion).
IOException
SAXException
TransformerException
@Converter public SAXSource toSAXSource(Source source, Exchange exchange) throws IOException, SAXException, TransformerException
SAXSource
or returns null if the conversion is not
supported (making it easy to derive from this class to add new kinds of conversion).
IOException
SAXException
TransformerException
@Deprecated public StreamSource toStreamSource(Source source) throws TransformerException
TransformerException
@Converter public StreamSource toStreamSource(Source source, Exchange exchange) throws TransformerException
TransformerException
@Converter public StreamSource toStreamSource(InputStream in) throws TransformerException
TransformerException
@Converter public StreamSource toStreamSource(Reader in) throws TransformerException
TransformerException
@Converter public StreamSource toStreamSource(File in) throws TransformerException
TransformerException
@Converter public StreamSource toStreamSource(byte[] in, Exchange exchange) throws TransformerException
TransformerException
@Converter public StreamSource toStreamSource(ByteBuffer in, Exchange exchange) throws TransformerException
TransformerException
@Deprecated public StreamSource toStreamSourceFromSAX(SAXSource source) throws TransformerException
TransformerException
@Converter public StreamSource toStreamSourceFromSAX(SAXSource source, Exchange exchange) throws TransformerException
TransformerException
@Deprecated public StreamSource toStreamSourceFromDOM(DOMSource source) throws TransformerException
TransformerException
@Converter public StreamSource toStreamSourceFromDOM(DOMSource source, Exchange exchange) throws TransformerException
TransformerException
@Converter public SAXSource toSAXSourceFromStream(StreamSource source)
@Deprecated public Reader toReaderFromSource(Source src) throws TransformerException
TransformerException
@Converter public Reader toReaderFromSource(Source src, Exchange exchange) throws TransformerException
TransformerException
@Converter public DOMSource toDOMSource(InputStream is) throws ParserConfigurationException, IOException, SAXException
ParserConfigurationException
IOException
SAXException
@Converter public DOMSource toDOMSourceFromStream(StreamSource source) throws ParserConfigurationException, IOException, SAXException
ParserConfigurationException
IOException
SAXException
@Deprecated public SAXSource toSAXSourceFromDOM(DOMSource source) throws TransformerException
TransformerException
@Converter public SAXSource toSAXSourceFromDOM(DOMSource source, Exchange exchange) throws TransformerException
TransformerException
@Converter public DOMSource toDOMSourceFromSAX(SAXSource source) throws IOException, SAXException, ParserConfigurationException, TransformerException
IOException
SAXException
ParserConfigurationException
TransformerException
@Converter public Node toDOMNodeFromSAX(SAXSource source) throws ParserConfigurationException, IOException, SAXException, TransformerException
ParserConfigurationException
IOException
SAXException
TransformerException
@Converter public Node toDOMNode(Source source) throws TransformerException, ParserConfigurationException, IOException, SAXException
TransformerException
ParserConfigurationException
IOException
SAXException
@Converter public Element toDOMElement(Source source) throws TransformerException, ParserConfigurationException, IOException, SAXException
TransformerException
ParserConfigurationException
IOException
SAXException
@Converter public Element toDOMElement(Node node) throws TransformerException
TransformerException
@Converter public Document toDOMDocument(byte[] data) throws IOException, SAXException, ParserConfigurationException
data
- is the data to be parsed
IOException
SAXException
ParserConfigurationException
@Converter public Document toDOMDocument(InputStream in) throws IOException, SAXException, ParserConfigurationException
InputStream
to a DOM document
in
- is the data to be parsed
IOException
SAXException
ParserConfigurationException
@Converter public Document toDOMDocument(Reader in) throws IOException, SAXException, ParserConfigurationException
InputStream
to a DOM document
in
- is the data to be parsed
IOException
SAXException
ParserConfigurationException
@Converter public Document toDOMDocument(InputSource in) throws IOException, SAXException, ParserConfigurationException
InputSource
to a DOM document
in
- is the data to be parsed
IOException
SAXException
ParserConfigurationException
@Converter public Document toDOMDocument(String text) throws IOException, SAXException, ParserConfigurationException
String
to a DOM document
text
- is the data to be parsed
IOException
SAXException
ParserConfigurationException
@Converter public Document toDOMDocument(File file) throws IOException, SAXException, ParserConfigurationException
File
to a DOM document
file
- is the data to be parsed
IOException
SAXException
ParserConfigurationException
@Converter public Document toDOMDocument(Source source) throws TransformerException, ParserConfigurationException, IOException, SAXException
TransformerException
ParserConfigurationException
IOException
SAXException
@Converter public Document toDOMDocument(Node node) throws ParserConfigurationException, TransformerException
ParserConfigurationException
TransformerException
@Deprecated public InputStream toInputStream(DOMSource source) throws TransformerException, IOException
TransformerException
IOException
@Converter public InputStream toInputStream(DOMSource source, Exchange exchange) throws TransformerException, IOException
TransformerException
IOException
@Deprecated public InputStream toInputStream(Document dom) throws TransformerException, IOException
TransformerException
IOException
@Converter public InputStream toInputStream(Document dom, Exchange exchange) throws TransformerException, IOException
TransformerException
IOException
@Converter public InputSource toInputSource(InputStream is)
public DocumentBuilderFactory getDocumentBuilderFactory()
public void setDocumentBuilderFactory(DocumentBuilderFactory documentBuilderFactory)
public DocumentBuilderFactory createDocumentBuilderFactory()
public DocumentBuilder createDocumentBuilder() throws ParserConfigurationException
ParserConfigurationException
public Document createDocument() throws ParserConfigurationException
ParserConfigurationException
public TransformerFactory getTransformerFactory()
public void setTransformerFactory(TransformerFactory transformerFactory)
@Deprecated public Transformer createTransfomer() throws TransformerConfigurationException
createTransformer()
, will be removed in Camel 3.0
TransformerConfigurationException
public Transformer createTransformer() throws TransformerConfigurationException
TransformerConfigurationException
public TransformerFactory createTransformerFactory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |