Class 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 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 interface org.apache.axiom.om.OMDataSource
        Specified by:
        serialize in interface org.apache.axiom.om.OMDataSourceExt
        Overrides:
        serialize in class org.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 interface org.apache.axiom.om.OMDataSource
        Specified by:
        serialize in interface org.apache.axiom.om.OMDataSourceExt
        Overrides:
        serialize in class org.apache.axiom.om.ds.OMDataSourceExtBase
        Throws:
        XMLStreamException
      • serialize

        public void serialize​(XMLStreamWriter xmlWriter)
                       throws XMLStreamException
        Specified by:
        serialize in interface org.apache.axiom.om.OMDataSource
        Specified by:
        serialize in interface org.apache.axiom.om.OMDataSourceExt
        Overrides:
        serialize in class org.apache.axiom.om.ds.OMDataSourceExtBase
        Throws:
        XMLStreamException
      • getObject

        public Object getObject()
      • isDestructiveRead

        public boolean isDestructiveRead()
      • isDestructiveWrite

        public boolean isDestructiveWrite()
      • close

        public void close()
      • copy

        public org.apache.axiom.om.OMDataSourceExt copy()