org.apache.synapse.util
Class TextFileDataSource

java.lang.Object
  extended by org.apache.axiom.om.ds.OMDataSourceExtBase
      extended by org.apache.synapse.util.TextFileDataSource
All Implemented Interfaces:
OMDataSource, OMDataSourceExt

public class TextFileDataSource
extends OMDataSourceExtBase


Field Summary
 
Fields inherited from interface org.apache.axiom.om.OMDataSourceExt
LOSSY_PREFIX
 
Constructor Summary
TextFileDataSource(OverflowBlob overflowBlob, Charset charset)
           
 
Method Summary
 void close()
           
 OMDataSourceExt copy()
           
static OMSourcedElement createOMSourcedElement(OverflowBlob overflowBlob, Charset charset)
           
 Object getObject()
           
 javax.xml.stream.XMLStreamReader getReader()
           
 byte[] getXMLBytes(String encoding)
           
 boolean isDestructiveRead()
           
 boolean isDestructiveWrite()
           
 void serialize(OutputStream out, OMOutputFormat format)
           
 void serialize(Writer writer, OMOutputFormat format)
           
 void serialize(javax.xml.stream.XMLStreamWriter xmlWriter)
           
 
Methods inherited from class org.apache.axiom.om.ds.OMDataSourceExtBase
getProperty, getXMLInputStream, hasProperty, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextFileDataSource

public TextFileDataSource(OverflowBlob overflowBlob,
                          Charset charset)
Method Detail

createOMSourcedElement

public static OMSourcedElement createOMSourcedElement(OverflowBlob overflowBlob,
                                                      Charset charset)

serialize

public void serialize(OutputStream out,
                      OMOutputFormat format)
               throws javax.xml.stream.XMLStreamException
Specified by:
serialize in interface OMDataSource
Specified by:
serialize in interface OMDataSourceExt
Overrides:
serialize in class OMDataSourceExtBase
Throws:
javax.xml.stream.XMLStreamException

serialize

public void serialize(Writer writer,
                      OMOutputFormat format)
               throws javax.xml.stream.XMLStreamException
Specified by:
serialize in interface OMDataSource
Specified by:
serialize in interface OMDataSourceExt
Overrides:
serialize in class OMDataSourceExtBase
Throws:
javax.xml.stream.XMLStreamException

serialize

public void serialize(javax.xml.stream.XMLStreamWriter xmlWriter)
               throws javax.xml.stream.XMLStreamException
Specified by:
serialize in interface OMDataSource
Specified by:
serialize in interface OMDataSourceExt
Overrides:
serialize in class OMDataSourceExtBase
Throws:
javax.xml.stream.XMLStreamException

getReader

public javax.xml.stream.XMLStreamReader getReader()
                                           throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

getObject

public Object getObject()

isDestructiveRead

public boolean isDestructiveRead()

isDestructiveWrite

public boolean isDestructiveWrite()

getXMLBytes

public byte[] getXMLBytes(String encoding)
                   throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

close

public void close()

copy

public OMDataSourceExt copy()


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.