|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IXmlPullParser
The interface of a streaming XML parser as required by Wicket.
| Nested Class Summary | |
|---|---|
static class |
IXmlPullParser.HttpTagType
The last element found |
| Method Summary | |
|---|---|
CharSequence |
getDoctype()
Gets the <! |
XmlTag |
getElement()
|
String |
getEncoding()
Return the encoding applied while reading the markup resource. |
CharSequence |
getInput(int fromPos,
int toPos)
Wicket dissects the markup into Wicket relevant tags and raw markup, which is not further analyzed by Wicket. |
CharSequence |
getInputFromPositionMarker(int toPos)
Wicket dissects the markup into Wicket relevant tags and raw markup, which is not further analyzed by Wicket. |
CharSequence |
getString()
|
IXmlPullParser.HttpTagType |
next()
Move to the next XML element |
void |
parse(CharSequence string)
Parse the markup provided. |
void |
parse(InputStream inputStream)
Reads and parses markup from an input stream, using UTF-8 encoding by default when not specified in XML declaration. |
void |
parse(InputStream inputStream,
String encoding)
Reads and parses markup from an input stream. |
void |
setPositionMarker()
Set the position marker of the markup at the current position. |
void |
setPositionMarker(int pos)
Set the position marker of the markup |
| Method Detail |
|---|
String getEncoding()
CharSequence getDoctype()
CharSequence getInputFromPositionMarker(int toPos)
toPos - To position
CharSequence getInput(int fromPos,
int toPos)
fromPos - From positiontoPos - To position
void parse(CharSequence string)
throws IOException,
ResourceStreamNotFoundException
Note: xml character encoding is NOT applied. It is assumed the input provided does have the correct encoding already.
string - The markup to be parsed
IOException - Error while reading the resource
ResourceStreamNotFoundException - Resource not found
void parse(InputStream inputStream)
throws IOException,
ResourceStreamNotFoundException
inputStream - The input stream to read and parse
IOException - Error while reading the resource
ResourceStreamNotFoundException - Resource not found
void parse(InputStream inputStream,
String encoding)
throws IOException
inputStream - A resource like e.g. a fileencoding - Use null to apply JVM/OS default
IOException - Error while reading the resource
IXmlPullParser.HttpTagType next()
throws ParseException
ParseExceptionXmlTag getElement()
CharSequence getString()
void setPositionMarker()
void setPositionMarker(int pos)
pos -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||