接口 StaxWriterCallback


  • public interface StaxWriterCallback
    Callback interface for writing to an XML file - useful e.g. for handling headers and footers.
    作者:
    Robert Kasanicky
    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型方法说明
      voidwrite​(javax.xml.stream.XMLEventWriter writer)
      Write contents using the supplied XMLEventWriter.
    • 方法详细资料

      • write

        void write​(javax.xml.stream.XMLEventWriter writer)
            throws java.io.IOException
        Write contents using the supplied XMLEventWriter. It is not required to flush the writer inside this method.
        参数:
        writer - the XMLEventWriter to be used to write the contents.
        抛出:
        java.io.IOException - thrown if an error occurs during writing.