it.imolinfo.jbi4ejb.processor.transform
Class StringSource

java.lang.Object
  extended by javax.xml.transform.stream.StreamSource
      extended by it.imolinfo.jbi4ejb.processor.transform.StringSource
All Implemented Interfaces:
java.io.Serializable, javax.xml.transform.Source

public class StringSource
extends javax.xml.transform.stream.StreamSource
implements java.io.Serializable

Taken from servicemix-core.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.xml.transform.stream.StreamSource
FEATURE
 
Constructor Summary
StringSource(java.lang.String text)
          Instantiates a new string source.
StringSource(java.lang.String text, java.lang.String systemId)
          Instantiates a new string source.
StringSource(java.lang.String text, java.lang.String systemId, java.lang.String encoding)
          Instantiates a new string source.
 
Method Summary
 java.io.InputStream getInputStream()
          Gets the InptStream.
 java.io.Reader getReader()
          Gets the Reader.
 java.lang.String getText()
          Gets the text.
 java.lang.String toString()
          The Source as String.
 
Methods inherited from class javax.xml.transform.stream.StreamSource
getPublicId, getSystemId, setInputStream, setPublicId, setReader, setSystemId, setSystemId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringSource

public StringSource(java.lang.String text)
Instantiates a new string source.

Parameters:
text - The StringSource text

StringSource

public StringSource(java.lang.String text,
                    java.lang.String systemId)
Instantiates a new string source.

Parameters:
text - The StringSource text
systemId - The SystemId

StringSource

public StringSource(java.lang.String text,
                    java.lang.String systemId,
                    java.lang.String encoding)
Instantiates a new string source.

Parameters:
text - The StringSource text
systemId - The SystemId
encoding - The encoding
Method Detail

getInputStream

public java.io.InputStream getInputStream()
Gets the InptStream.

Overrides:
getInputStream in class javax.xml.transform.stream.StreamSource
Returns:
The Source InputStream

getReader

public java.io.Reader getReader()
Gets the Reader.

Overrides:
getReader in class javax.xml.transform.stream.StreamSource
Returns:
te source Reader

toString

public java.lang.String toString()
The Source as String.

Overrides:
toString in class java.lang.Object
Returns:
the Source as String

getText

public java.lang.String getText()
Gets the text.

Returns:
the text


Copyright © 2007-2008 Imola Informatica. All Rights Reserved.