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

All Implemented Interfaces:

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.
 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