com.metamatrix.query.xquery.saxon
Class SaxonXMLTranslator

java.lang.Object
  extended by com.metamatrix.query.xquery.saxon.SaxonXMLTranslator
All Implemented Interfaces:
XMLTranslator

public class SaxonXMLTranslator
extends java.lang.Object
implements XMLTranslator

This converts the SAXOn based XML tree into another popular XMl formats like String, DOM, SAX etc.


Field Summary
 
Fields inherited from interface com.metamatrix.common.types.XMLTranslator
idenityTransform, INDENT, lineSep
 
Constructor Summary
SaxonXMLTranslator(net.sf.saxon.om.NodeInfo source, java.util.Properties props)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SaxonXMLTranslator

public SaxonXMLTranslator(net.sf.saxon.om.NodeInfo source,
                          java.util.Properties props)
Method Detail

getString

public java.lang.String getString()
                           throws java.io.IOException
Description copied from interface: XMLTranslator
Get String form of the XML

Specified by:
getString in interface XMLTranslator
Returns:
string representing the XML source
Throws:
java.io.IOException
See Also:
XMLTranslator.getString()

getSource

public javax.xml.transform.Source getSource()
                                     throws java.io.IOException
Description copied from interface: XMLTranslator
Get the XML in the original source form; with however it got created.

Specified by:
getSource in interface XMLTranslator
Returns:
Throws:
java.io.IOException
See Also:
XMLTranslator.getSource()

getReader

public java.io.Reader getReader()
                         throws java.io.IOException
Description copied from interface: XMLTranslator
Get a Reader for the XML contents;

Specified by:
getReader in interface XMLTranslator
Returns:
a Reader object for streaming the XML contents.
Throws:
java.io.IOException
See Also:
XMLTranslator.getReader()

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Description copied from interface: XMLTranslator
Get a InputStream for the XMl contents;

Specified by:
getInputStream in interface XMLTranslator
Returns:
a InputStream object for streaming the XML contents.
Throws:
java.io.IOException
See Also:
XMLTranslator.getInputStream()

getProperties

public java.util.Properties getProperties()
Description copied from interface: XMLTranslator
Any specific Properties needed by the translator process, such as indenting etc.

Specified by:
getProperties in interface XMLTranslator
Returns:
properties
See Also:
XMLTranslator.getProperties()


Copyright © 2009. All Rights Reserved.