接口 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
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 void
markFragmentProcessed()
Tells the event reader the current fragment has been processed.void
markStartFragment()
Tells the event reader its cursor position is exactly before the fragment.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).
方法详细资料
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).