com.ibm.streams.operator.types
Interface XML
-
public interface XML
SPLxml
attribute. An SPLxml
attribute contains an XML document.XML
maintains the document as a representation of its byte stream which is encoded according to the document itself.The default value for an
xml
attribute is the empty string which is not a valid XML document. Most methods on this interface will throwIllegalStateException
ifisDefaultValue()
istrue
.XML
is immutable.Instances of
XML
implementjava.io.Serializable
.- Since:
- InfoSphere® Streams Version 3.0
-
-
Method Summary
Methods Modifier and Type Method and Description java.io.InputStream
getInputStream()
Get the byte stream for this document with character encoding specified by the XML declarationjavax.xml.transform.stream.StreamSource
getStreamSource()
Get aStreamSource
for this document.boolean
isDefaultValue()
Is this value the default value for an SPLxml
attribute.
-
-
-
Method Detail
-
isDefaultValue
boolean isDefaultValue()
Is this value the default value for an SPLxml
attribute. The default is an empty string.- Returns:
- True if the value is the default value, false otherwise.
-
getStreamSource
javax.xml.transform.stream.StreamSource getStreamSource()
Get aStreamSource
for this document.- Returns:
- A
StreamSource
for this document. - Throws:
java.lang.IllegalStateException
- Thrown ifisDefaultValue()
istrue
.
-
getInputStream
java.io.InputStream getInputStream()
Get the byte stream for this document with character encoding specified by the XML declaration- Returns:
- Byte stream for this document.
- Throws:
java.lang.IllegalStateException
- Thrown ifisDefaultValue()
istrue
.
-
-