public interface Element
Modifier and Type | Method and Description |
---|---|
void |
characters(CharSequence csq,
int start,
int end)
Method called by the parser when it finds characters between starting and closing tags.
|
boolean |
onError(Exception e,
ParserContext ctx) |
void |
onTagEnd(String tag,
ParserContext ctx)
Method called by the parser when it finds the matching closing tag.
|
boolean |
onTagStart(String tag,
ParserContext ctx)
Method called by the parser when it finds an opening tag.
|
boolean onTagStart(String tag, ParserContext ctx) throws IOException, HttpErrorPage
tag
- The tagctx
- The parser contextIOException
HttpErrorPage
void onTagEnd(String tag, ParserContext ctx) throws IOException, HttpErrorPage
tag
- The tagctx
- IOException
HttpErrorPage
boolean onError(Exception e, ParserContext ctx)
e
- ctx
- true
if error has been handled by this element and it should not be propagated further.void characters(CharSequence csq, int start, int end) throws IOException
csq
- the CharSequence
to appendstart
- the start index in the CharSequence
. Allows to append only a subset of the
CharSequence
.end
- the end index in the CharSequence
. Allows to append only a subset of the CharSequence
.IOException
Copyright © 2008–2018. All rights reserved.