com.metamatrix.common.types
Class XMLStreamSourceTranslator

java.lang.Object
  extended by com.metamatrix.common.types.BaseXMLTranslator
      extended by com.metamatrix.common.types.XMLStreamSourceTranslator
All Implemented Interfaces:
XMLTranslator

public class XMLStreamSourceTranslator
extends BaseXMLTranslator

This class converts the Stream Source XML feed into other types of XML Sources.


Field Summary
 
Fields inherited from interface com.metamatrix.common.types.XMLTranslator
idenityTransform, INDENT, lineSep
 
Constructor Summary
XMLStreamSourceTranslator(char[] xmlSource, java.util.Properties props)
           
XMLStreamSourceTranslator(javax.xml.transform.stream.StreamSource source, java.util.Properties props)
           
XMLStreamSourceTranslator(java.lang.String xmlSource, java.util.Properties props)
           
XMLStreamSourceTranslator(XMLReaderFactory factory, java.util.Properties props)
           
 
Method Summary
 java.io.InputStream getInputStream()
          Get a InputStream for the XMl contents;
 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 com.metamatrix.common.types.BaseXMLTranslator
getBytes, getProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLStreamSourceTranslator

public XMLStreamSourceTranslator(java.lang.String xmlSource,
                                 java.util.Properties props)

XMLStreamSourceTranslator

public XMLStreamSourceTranslator(char[] xmlSource,
                                 java.util.Properties props)

XMLStreamSourceTranslator

public XMLStreamSourceTranslator(javax.xml.transform.stream.StreamSource source,
                                 java.util.Properties props)

XMLStreamSourceTranslator

public XMLStreamSourceTranslator(XMLReaderFactory factory,
                                 java.util.Properties props)
Method Detail

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.

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
Overrides:
getReader in class BaseXMLTranslator
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
Overrides:
getInputStream in class BaseXMLTranslator
Returns:
a InputStream object for streaming the XML contents.
Throws:
java.io.IOException
See Also:
XMLTranslator.getInputStream()

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
Overrides:
getString in class BaseXMLTranslator
Returns:
string representing the XML source
Throws:
java.io.IOException
See Also:
XMLTranslator.getString()


Copyright © 2009. All Rights Reserved.