Class DiscardMarkupHandler

java.lang.Object
org.attoparser.AbstractMarkupHandler
org.attoparser.discard.DiscardMarkupHandler
All Implemented Interfaces:
IAttributeSequenceHandler, ICDATASectionHandler, ICommentHandler, IDocTypeHandler, IDocumentHandler, IElementHandler, IMarkupHandler, IProcessingInstructionHandler, ITextHandler, IXMLDeclarationHandler

public final class DiscardMarkupHandler extends AbstractMarkupHandler

Implementation of IMarkupHandler that simply discards all events.

This handler is normally used in scenarios in which some events are directed to one handler and some others to a second one, like block/node selection operations performed by means of the BlockSelectorMarkupHandler or NodeSelectorMarkupHandler handlers.

Note that, unlike most other implementations of IMarkupHandler, this class is completely stateless and thread-safe, and thus objects of this class can be safely reused among several parsing operations if needed.

Since:
2.0.0
  • Constructor Details

    • DiscardMarkupHandler

      public DiscardMarkupHandler()

      Create a new instance of this handler.