接口 FragmentEventReader

  • 所有超级接口:
    java.util.Iterator<java.lang.Object>, javax.xml.stream.XMLEventReader
    所有已知实现类:
    DefaultFragmentEventReader

    public interface FragmentEventReader
    extends javax.xml.stream.XMLEventReader
    Interface for event readers which support treating XML fragments as standalone XML documents by wrapping the fragments with StartDocument and EndDocument events.
    作者:
    Robert Kasanicky
    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型方法说明
      voidmarkFragmentProcessed()
      Tells the event reader the current fragment has been processed.
      voidmarkStartFragment()
      Tells the event reader its cursor position is exactly before the fragment.
      voidreset()
      Reset the state of the fragment reader - make it forget it assumptions about current position of cursor (e.g. in case of rollback of the wrapped reader).
      • 从接口继承的方法 java.util.Iterator

        forEachRemaining, next, remove
      • 从接口继承的方法 javax.xml.stream.XMLEventReader

        close, getElementText, getProperty, hasNext, nextEvent, nextTag, peek
    • 方法详细资料

      • markStartFragment

        void markStartFragment()
        Tells the event reader its cursor position is exactly before the fragment.
      • markFragmentProcessed

        void markFragmentProcessed()
        Tells the event reader the current fragment has been processed. If the cursor is still inside the fragment it should be moved after the end of the fragment.
      • reset

        void reset()
        Reset the state of the fragment reader - make it forget it assumptions about current position of cursor (e.g. in case of rollback of the wrapped reader).