|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object org.attoparser.AbstractAttoParser org.attoparser.AbstractBufferedAttoParser org.attoparser.markup.MarkupAttoParser
public final class MarkupAttoParser
Default implementation of the IAttoParser
interface, able of
parsing XML and HTML markup.
This parser reports as structures:
This parser class is thread-safe. But take into account that, usually, the
IAttoHandler
implementations passed to parsers for event handling are not.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.attoparser.AbstractBufferedAttoParser |
---|
AbstractBufferedAttoParser.BufferParseResult |
Field Summary |
---|
Fields inherited from class org.attoparser.AbstractBufferedAttoParser |
---|
BUFFER_SIZE |
Constructor Summary | |
---|---|
MarkupAttoParser()
Creates a new instance of this parser. |
|
MarkupAttoParser(boolean canSplitText)
Creates a new instance of this parser. |
Method Summary | |
---|---|
protected AbstractBufferedAttoParser.BufferParseResult |
parseBuffer(char[] buffer,
int offset,
int len,
IAttoHandler handler,
int line,
int col)
Parse a buffer segment and return a AbstractBufferedAttoParser.BufferParseResult reporting
the results of this parsing. |
Methods inherited from class org.attoparser.AbstractBufferedAttoParser |
---|
parseDocument |
Methods inherited from class org.attoparser.AbstractAttoParser |
---|
parse, parse, parse, parse |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MarkupAttoParser()
Creates a new instance of this parser.
public MarkupAttoParser(boolean canSplitText)
Creates a new instance of this parser.
canSplitText
- if true
, text nodes may be split and sent to the handler as multiple text nodes. The
default is false
.Method Detail |
---|
protected final AbstractBufferedAttoParser.BufferParseResult parseBuffer(char[] buffer, int offset, int len, IAttoHandler handler, int line, int col) throws AttoParseException
AbstractBufferedAttoParser
Parse a buffer segment and return a AbstractBufferedAttoParser.BufferParseResult
reporting
the results of this parsing.
parseBuffer
in class AbstractBufferedAttoParser
buffer
- the document buffer.offset
- the offset (in the document buffer) of the segment to be parsed.len
- the length (in chars) of the segment to be parsed.handler
- the IAttoHandler
implementation to be used for reporting events.line
- the line of the first position (offset) in buffer.col
- the column of the first position (offset) in buffer.
AbstractBufferedAttoParser.BufferParseResult
reporting the parsing status.
AttoParseException
- if an error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |