Package | Description |
---|---|
org.attoparser |
Main parser and handler artifacts: basic interfaces and implementations.
|
org.attoparser.discard |
Handlers for discarding markup.
|
org.attoparser.dom |
Handlers for creating DOM trees as a result of parsing.
|
org.attoparser.duplicate |
Handlers for duplicating events between more than one handler.
|
org.attoparser.minimize |
Handlers for minimizing (compacting) HTML markup.
|
org.attoparser.output |
Handlers for outputting markup as a result of parsing.
|
org.attoparser.prettyhtml |
Handlers for creating a pretty-HTML representation of parsing events.
|
org.attoparser.select |
Handlers for filtering a part or several parts of markup during parsing
in a fast and efficient way.
|
org.attoparser.simple |
Artifacts for parsing using a simplified version of the handler interfaces.
|
org.attoparser.trace |
Handlers for creating traces of parsing events (for testing/debugging).
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractChainedMarkupHandler
Base abstract implementation of
IMarkupHandler that implements all of its event handlers
by delegating these events to another IMarkupHandler object passed during construction. |
class |
AbstractMarkupHandler
Base abstract implementation of
IMarkupHandler that implements all of its methods
as no-ops. |
Modifier and Type | Method and Description |
---|---|
protected IMarkupHandler |
AbstractChainedMarkupHandler.getNext()
Return the next handler in the chain, so that events can be delegated to it.
|
Modifier and Type | Method and Description |
---|---|
void |
MarkupParser.parse(char[] document,
IMarkupHandler handler) |
void |
IMarkupParser.parse(char[] document,
IMarkupHandler handler)
Parse a document using the specified
IMarkupHandler . |
void |
MarkupParser.parse(char[] document,
int offset,
int len,
IMarkupHandler handler) |
void |
IMarkupParser.parse(char[] document,
int offset,
int len,
IMarkupHandler handler)
Parse a document using the specified
IMarkupHandler . |
void |
MarkupParser.parse(Reader reader,
IMarkupHandler handler) |
void |
IMarkupParser.parse(Reader reader,
IMarkupHandler handler)
Parse a document using the specified
IMarkupHandler . |
void |
MarkupParser.parse(String document,
IMarkupHandler handler) |
void |
IMarkupParser.parse(String document,
IMarkupHandler handler)
Parse a document using the specified
IMarkupHandler . |
static void |
ParsingElementMarkupUtil.parseCloseElement(char[] buffer,
int offset,
int len,
int line,
int col,
IMarkupHandler markupHandler) |
static void |
ParsingElementMarkupUtil.parseOpenElement(char[] buffer,
int offset,
int len,
int line,
int col,
IMarkupHandler markupHandler) |
static void |
ParsingElementMarkupUtil.parseStandaloneElement(char[] buffer,
int offset,
int len,
int line,
int col,
IMarkupHandler markupHandler) |
Constructor and Description |
---|
AbstractChainedMarkupHandler(IMarkupHandler next)
Create a new instance of this handler, specifying the handler that will be used as next step in the
chain.
|
Modifier and Type | Class and Description |
---|---|
class |
DiscardMarkupHandler
Implementation of
IMarkupHandler that simply discards all events. |
Modifier and Type | Class and Description |
---|---|
class |
DOMBuilderMarkupHandler
Implementation of
IMarkupHandler that builds a DOM tree using objects of
classes from package org.attoparser.dom. |
Modifier and Type | Class and Description |
---|---|
class |
DuplicateMarkupHandler
Implementation of
IMarkupHandler used for duplicating events, sending them to two
different handlers. |
Constructor and Description |
---|
DuplicateMarkupHandler(IMarkupHandler handler1,
IMarkupHandler handler2)
Creates a new instance of this handler, specifying the two delegate handlers to which events
will be redirected.
|
Modifier and Type | Class and Description |
---|---|
class |
MinimizeHtmlMarkupHandler
Implementation of
IMarkupHandler used for minimizing (compacting) HTML markup. |
Constructor and Description |
---|
MinimizeHtmlMarkupHandler(MinimizeHtmlMarkupHandler.MinimizeMode minimizeMode,
IMarkupHandler next)
Creates a new instance of this handler, specifying the minimization mode and the handler to which
minimized events will be delegated.
|
Modifier and Type | Class and Description |
---|---|
class |
OutputMarkupHandler
Implementation of
IMarkupHandler used for writing received parsing events as markup output. |
class |
TextOutputMarkupHandler
Implementation of
IMarkupHandler used for writing received parsing events as text output,
by ignoring all events except the Text ones. |
Modifier and Type | Class and Description |
---|---|
class |
PrettyHtmlMarkupHandler
Implementation of
IMarkupHandler used for pretty-printing the result of parsing
the input markup. |
Modifier and Type | Class and Description |
---|---|
class |
AttributeSelectionMarkingMarkupHandler
Implementation of the
IMarkupHandler that
adds an attribute (with a user-specified name) to all elements that match one or more selectors,
as determined by a BlockSelectorMarkupHandler or
NodeSelectorMarkupHandler handler. |
class |
BlockSelectorMarkupHandler
Implementation of
IMarkupHandler able to apply block selection based on a set
of specified markup selectors (see org.attoparser.select ). |
class |
NodeSelectorMarkupHandler
Implementation of
IMarkupHandler able to apply node-selection based on a set
of specified markup selectors (see org.attoparser.select ). |
Modifier and Type | Method and Description |
---|---|
void |
BlockSelectorMarkupHandler.setDocumentStartEndHandler(IMarkupHandler documentStartEndHandler)
Sets the
IMarkupHandler instance to which the document start and
document end events should be delegated. |
void |
NodeSelectorMarkupHandler.setDocumentStartEndHandler(IMarkupHandler documentStartEndHandler)
Sets the
IMarkupHandler instance to which the document start and
document end events should be delegated. |
Constructor and Description |
---|
AttributeSelectionMarkingMarkupHandler(String selectorAttributeName,
IMarkupHandler handler)
Build a new instance of this class, specifying the name of the attribute to be added to the matching elements
and also the handler all events should be delegated to.
|
BlockSelectorMarkupHandler(IMarkupHandler selectedHandler,
IMarkupHandler nonSelectedHandler,
String selector)
Create a new instance of this handler, specifying both the selected and non-selected
handlers, and the selector to be used.
|
BlockSelectorMarkupHandler(IMarkupHandler selectedHandler,
IMarkupHandler nonSelectedHandler,
String[] selectors)
Create a new instance of this handler, specifying both the selected and non-selected
handlers, and the selectors to be used.
|
BlockSelectorMarkupHandler(IMarkupHandler selectedHandler,
IMarkupHandler nonSelectedHandler,
String[] selectors,
IMarkupSelectorReferenceResolver referenceResolver)
Create a new instance of this handler, specifying both the selected and non-selected
handlers, as well as a markup selector reference resolver and the selectors to be used.
|
BlockSelectorMarkupHandler(IMarkupHandler selectedHandler,
IMarkupHandler nonSelectedHandler,
String selector,
IMarkupSelectorReferenceResolver referenceResolver)
Create a new instance of this handler, specifying both the selected and non-selected
handlers, as well as a markup selector reference resolver and the selector to be used.
|
BlockSelectorMarkupHandler(IMarkupHandler selectedHandler,
String selector)
Create a new instance of this handler, specifying the selected
handler and the selector to be used.
|
BlockSelectorMarkupHandler(IMarkupHandler selectedHandler,
String[] selectors)
Create a new instance of this handler, specifying the selected
handler and the selectors to be used.
|
BlockSelectorMarkupHandler(IMarkupHandler selectedHandler,
String[] selectors,
IMarkupSelectorReferenceResolver referenceResolver)
Create a new instance of this handler, specifying the selected
handler, as well as a markup selector reference resolver and the selectors to be used.
|
BlockSelectorMarkupHandler(IMarkupHandler selectedHandler,
String selector,
IMarkupSelectorReferenceResolver referenceResolver)
Create a new instance of this handler, specifying the selected
handler, as well as a markup selector reference resolver and the selector to be used.
|
NodeSelectorMarkupHandler(IMarkupHandler selectedHandler,
IMarkupHandler nonSelectedHandler,
String selector)
Create a new instance of this handler, specifying both the selected and non-selected
handlers, and the selector to be used.
|
NodeSelectorMarkupHandler(IMarkupHandler selectedHandler,
IMarkupHandler nonSelectedHandler,
String[] selectors)
Create a new instance of this handler, specifying both the selected and non-selected
handlers, and the selectors to be used.
|
NodeSelectorMarkupHandler(IMarkupHandler selectedHandler,
IMarkupHandler nonSelectedHandler,
String[] selectors,
IMarkupSelectorReferenceResolver referenceResolver)
Create a new instance of this handler, specifying both the selected and non-selected
handlers, as well as a markup selector reference resolver and the selectors to be used.
|
NodeSelectorMarkupHandler(IMarkupHandler selectedHandler,
IMarkupHandler nonSelectedHandler,
String selector,
IMarkupSelectorReferenceResolver referenceResolver)
Create a new instance of this handler, specifying both the selected and non-selected
handlers, as well as a markup selector reference resolver and the selector to be used.
|
Modifier and Type | Class and Description |
---|---|
class |
SimplifierMarkupHandler
Implementation of the
IMarkupHandler interface aimed at converting the events launched
through this interface to the simpler ones at the ISimpleMarkupHandler interface. |
Modifier and Type | Class and Description |
---|---|
class |
TraceBuilderMarkupHandler
Implementation of
IMarkupHandler used for building a trace of parsing events which can
be examined afterwards. |
Copyright © 2017 The ATTOPARSER team. All rights reserved.