com.metamatrix.common.types
Interface XMLTranslator

All Known Implementing Classes:
BaseXMLTranslator, SaxonXMLTranslator, XMLDomSourceTranslator, XMLSAXSourceTranslator, XMLStreamSourceTranslator

public interface XMLTranslator

This an interface defined to convert the various kinds of the XML sources defined into another source kinds. For example a DOMSource.class source can be converted to String or SAXSource, or StreamSource is converted to DOMSource etc.


Field Summary
static java.lang.String idenityTransform
           
static java.lang.String INDENT
           
static java.lang.String lineSep
           
 
Method Summary
 java.io.InputStream getInputStream()
          Get a InputStream for the XMl contents;
 java.util.Properties getProperties()
          Any specific Properties needed by the translator process, such as indenting etc.
 java.io.Reader getReader()
          Get a Reader for the XML contents;
 javax.xml.transform.Source getSource()
          Get the XML in the original source form; with however it got created.
 java.lang.String getString()
          Get String form of the XML
 

Field Detail

lineSep

static final java.lang.String lineSep

INDENT

static final java.lang.String INDENT
See Also:
Constant Field Values

idenityTransform

static final java.lang.String idenityTransform
Method Detail

getString

java.lang.String getString()
                           throws java.io.IOException
Get String form of the XML

Returns:
string representing the XML source
Throws:
java.io.IOException

getSource

javax.xml.transform.Source getSource()
                                     throws java.io.IOException
Get the XML in the original source form; with however it got created.

Returns:
Throws:
java.io.IOException

getReader

java.io.Reader getReader()
                         throws java.io.IOException
Get a Reader for the XML contents;

Returns:
a Reader object for streaming the XML contents.
Throws:
java.io.IOException

getInputStream

java.io.InputStream getInputStream()
                                   throws java.io.IOException
Get a InputStream for the XMl contents;

Returns:
a InputStream object for streaming the XML contents.
Throws:
java.io.IOException

getProperties

java.util.Properties getProperties()
Any specific Properties needed by the translator process, such as indenting etc.

Returns:
properties


Copyright © 2009. All Rights Reserved.