com.metamatrix.common.types
Class XMLStreamSourceTranslator
java.lang.Object
com.metamatrix.common.types.BaseXMLTranslator
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.
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
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.