Save This Page
Home » synapse-1.2-src » org.apache.synapse.format » [javadoc | source]
org.apache.synapse.format
public class: TextFromElementDataSource [javadoc | source]
java.lang.Object
   org.apache.synapse.format.TextFromElementDataSource

All Implemented Interfaces:
    DataSource

Data source that represents the text of a given OMElement .

The expression

new TextFromElementDataSource(element, charset, contentType)
produces a DataSource implementation that is equivalent to
new ByteArrayDataSource(element.getText().getBytes(charset), contentType)
but that is more efficient.
Constructor:
 public TextFromElementDataSource(OMElement element,
    String charset,
    String contentType) 
Method from org.apache.synapse.format.TextFromElementDataSource Summary:
getContentType,   getInputStream,   getName,   getOutputStream
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.synapse.format.TextFromElementDataSource Detail:
 public String getContentType() 
 public InputStream getInputStream() throws IOException 
 public String getName() 
 public OutputStream getOutputStream() throws IOException