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 voidclose()org.apache.axiom.om.OMDataSourceExtcopy()static org.apache.axiom.om.OMSourcedElementcreateOMSourcedElement(org.apache.axiom.util.blob.OverflowBlob overflowBlob, Charset charset)ObjectgetObject()XMLStreamReadergetReader()byte[]getXMLBytes(String encoding)booleanisDestructiveRead()booleanisDestructiveWrite()voidserialize(OutputStream out, org.apache.axiom.om.OMOutputFormat format)voidserialize(Writer writer, org.apache.axiom.om.OMOutputFormat format)voidserialize(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:
serializein interfaceorg.apache.axiom.om.OMDataSource- Specified by:
serializein interfaceorg.apache.axiom.om.OMDataSourceExt- Overrides:
serializein classorg.apache.axiom.om.ds.OMDataSourceExtBase- Throws:
XMLStreamException
-
serialize
public void serialize(Writer writer, org.apache.axiom.om.OMOutputFormat format) throws XMLStreamException
- Specified by:
serializein interfaceorg.apache.axiom.om.OMDataSource- Specified by:
serializein interfaceorg.apache.axiom.om.OMDataSourceExt- Overrides:
serializein classorg.apache.axiom.om.ds.OMDataSourceExtBase- Throws:
XMLStreamException
-
serialize
public void serialize(XMLStreamWriter xmlWriter) throws XMLStreamException
- Specified by:
serializein interfaceorg.apache.axiom.om.OMDataSource- Specified by:
serializein interfaceorg.apache.axiom.om.OMDataSourceExt- Overrides:
serializein 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()
-
-