org.apache.synapse.util
Class TextFileDataSource
java.lang.Object
org.apache.axiom.om.ds.OMDataSourceExtBase
org.apache.synapse.util.TextFileDataSource
- All Implemented Interfaces:
- OMDataSource, OMDataSourceExt
public class TextFileDataSource
- extends OMDataSourceExtBase
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextFileDataSource
public TextFileDataSource(OverflowBlob overflowBlob,
Charset charset)
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.