public interface IXmlPullParser
Modifier and Type | Interface and Description |
---|---|
static class |
IXmlPullParser.HttpTagType
The last element found
|
Modifier and Type | Method and Description |
---|---|
CharSequence |
getDoctype()
Gets the <!DOCTYPE ...> tag if found in the markup
|
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
|
String getEncoding()
CharSequence getDoctype()
CharSequence getInputFromPositionMarker(int toPos)
toPos
- To positionCharSequence getInput(int fromPos, int toPos)
fromPos
- From positiontoPos
- To positionvoid parse(CharSequence string) throws IOException
Note: xml character encoding is NOT applied. It is assumed the input provided does have the correct encoding already.
string
- The markup to be parsedIOException
- Error while reading the resourcevoid parse(InputStream inputStream) throws IOException
inputStream
- The input stream to read and parseIOException
- Error while reading the resourcevoid parse(InputStream inputStream, String encoding) throws IOException
inputStream
- A resource like e.g. a fileencoding
- Use null to apply JVM/OS defaultIOException
- Error while reading the resourceIXmlPullParser.HttpTagType next() throws ParseException
ParseException
XmlTag getElement()
CharSequence getString()
void setPositionMarker()
void setPositionMarker(int pos)
pos
- Copyright © 2006–2022 Apache Software Foundation. All rights reserved.