|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsimple.ml.InlineLooseParser
public class InlineLooseParser
Parses ML without recursion. Will allow tags without end tags that are not
self-closing. Some may be interpreted as self-closing and have the children
tags moved to the parent. To define a self closing tag add it to
ParserConstants.
Other dependents:
simple.io.DoubleParsePosition
simple.util.do_str
simple.util.logging.Log
simple.util.logging.LogFactory
Created: Nov 4, 2010
| Field Summary | |
|---|---|
protected static Log |
log
|
| Constructor Summary | |
|---|---|
InlineLooseParser()
|
|
| Method Summary | |
|---|---|
private static Tag |
createTag(java.lang.CharSequence src,
DoubleParsePosition limits)
Creates a Tag based on the raw data passed to it. |
static Page |
parse(java.lang.CharSequence src)
See parse(CharSequence, ParserConstants) for important notes. |
static Page |
parse(java.lang.CharSequence src,
ParserConstants pconst)
Parses the text. |
static Page |
parse(java.io.Reader in)
See parse(Reader, ParserConstants) for important notes. |
static Page |
parse(java.io.Reader in,
ParserConstants pconst)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Log log
| Constructor Detail |
|---|
public InlineLooseParser()
| Method Detail |
|---|
public static Page parse(java.lang.CharSequence src)
throws java.text.ParseException
parse(CharSequence, ParserConstants) for important notes.
src - The text.
Page object that represents the source.
java.text.ParseException
public static Page parse(java.io.Reader in)
throws java.text.ParseException,
java.io.IOException
parse(Reader, ParserConstants) for important notes.
in - The Reader.
Page object that represents the source.
java.text.ParseException
java.io.IOException
public static Page parse(java.io.Reader in,
ParserConstants pconst)
throws java.io.IOException,
java.text.ParseException
java.io.IOException
java.text.ParseException
public static Page parse(java.lang.CharSequence src,
ParserConstants pconst)
throws java.text.ParseException
src - The text.pconst - Options specific to this source's format.
Page object that represents the source.
java.text.ParseExceptionParserConstants
private static Tag createTag(java.lang.CharSequence src,
DoubleParsePosition limits)
throws java.text.ParseException
src - The complete sourcelimits - The object that represents the location of < and >
java.text.ParseException - when certain elements are missing
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||