net.sf.saxon.pull

Class DocumentEventIgnorer

public class DocumentEventIgnorer extends PullFilter

This is a filter that can be added to a pull pipeline to remove START_DOCUMENT and END_DOCUMENT events.
Constructor Summary
DocumentEventIgnorer(PullProvider base)
Method Summary
intnext()
Get the next event.

Constructor Detail

DocumentEventIgnorer

public DocumentEventIgnorer(PullProvider base)

Method Detail

next

public int next()
Get the next event.

Note that a subclass that overrides this method is responsible for ensuring that current() works properly. This can be achieved by setting the field currentEvent to the event returned by any call on next().

Returns: an integer code indicating the type of event. The code DocumentEventIgnorer is returned at the end of the sequence.