Package org.apache.synapse.util
Class TextFileDataSource
- java.lang.Object
-
- org.apache.axiom.om.ds.OMDataSourceExtBase
-
- org.apache.synapse.util.TextFileDataSource
-
- All Implemented Interfaces:
org.apache.axiom.om.OMDataSource
,org.apache.axiom.om.OMDataSourceExt
public class TextFileDataSource extends org.apache.axiom.om.ds.OMDataSourceExtBase
-
-
Constructor Summary
Constructors Constructor Description TextFileDataSource(org.apache.axiom.util.blob.OverflowBlob overflowBlob, Charset charset)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
org.apache.axiom.om.OMDataSourceExt
copy()
static org.apache.axiom.om.OMSourcedElement
createOMSourcedElement(org.apache.axiom.util.blob.OverflowBlob overflowBlob, Charset charset)
Object
getObject()
XMLStreamReader
getReader()
byte[]
getXMLBytes(String encoding)
boolean
isDestructiveRead()
boolean
isDestructiveWrite()
void
serialize(OutputStream out, org.apache.axiom.om.OMOutputFormat format)
void
serialize(Writer writer, org.apache.axiom.om.OMOutputFormat format)
void
serialize(XMLStreamWriter xmlWriter)
-
-
-
Constructor Detail
-
TextFileDataSource
public TextFileDataSource(org.apache.axiom.util.blob.OverflowBlob overflowBlob, Charset charset)
-
-
Method Detail
-
createOMSourcedElement
public static org.apache.axiom.om.OMSourcedElement createOMSourcedElement(org.apache.axiom.util.blob.OverflowBlob overflowBlob, Charset charset)
-
serialize
public void serialize(OutputStream out, org.apache.axiom.om.OMOutputFormat format) throws XMLStreamException
- Specified by:
serialize
in interfaceorg.apache.axiom.om.OMDataSource
- Specified by:
serialize
in interfaceorg.apache.axiom.om.OMDataSourceExt
- Overrides:
serialize
in classorg.apache.axiom.om.ds.OMDataSourceExtBase
- Throws:
XMLStreamException
-
serialize
public void serialize(Writer writer, org.apache.axiom.om.OMOutputFormat format) throws XMLStreamException
- Specified by:
serialize
in interfaceorg.apache.axiom.om.OMDataSource
- Specified by:
serialize
in interfaceorg.apache.axiom.om.OMDataSourceExt
- Overrides:
serialize
in classorg.apache.axiom.om.ds.OMDataSourceExtBase
- Throws:
XMLStreamException
-
serialize
public void serialize(XMLStreamWriter xmlWriter) throws XMLStreamException
- Specified by:
serialize
in interfaceorg.apache.axiom.om.OMDataSource
- Specified by:
serialize
in interfaceorg.apache.axiom.om.OMDataSourceExt
- Overrides:
serialize
in classorg.apache.axiom.om.ds.OMDataSourceExtBase
- Throws:
XMLStreamException
-
getReader
public XMLStreamReader getReader() throws XMLStreamException
- Throws:
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 org.apache.axiom.om.OMDataSourceExt copy()
-
-