|
||||||||||
| 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 | |
|---|---|
java.lang.CharSequence |
getDoctype()
Gets the <!DOCTYPE ...> tag if found in the markup |
XmlTag |
getElement()
|
java.lang.String |
getEncoding()
Return the encoding applied while reading the markup resource. |
java.lang.CharSequence |
getInput(int fromPos,
int toPos)
Wicket dissects the markup into Wicket relevant tags and raw markup, which is not further analyzed by Wicket. |
java.lang.CharSequence |
getInputFromPositionMarker(int toPos)
Wicket dissects the markup into Wicket relevant tags and raw markup, which is not further analyzed by Wicket. |
java.lang.CharSequence |
getString()
|
IXmlPullParser.HttpTagType |
next()
Move to the next XML element |
void |
parse(java.lang.CharSequence string)
Parse the markup provided. |
void |
parse(java.io.InputStream inputStream)
Reads and parses markup from an input stream, using UTF-8 encoding by default when not specified in XML declaration. |
void |
parse(java.io.InputStream inputStream,
java.lang.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 |
|---|
java.lang.String getEncoding()
java.lang.CharSequence getDoctype()
java.lang.CharSequence getInputFromPositionMarker(int toPos)
toPos - To position
java.lang.CharSequence getInput(int fromPos,
int toPos)
fromPos - From positiontoPos - To position
void parse(java.lang.CharSequence string)
throws java.io.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
java.io.IOException - Error while reading the resource
ResourceStreamNotFoundException - Resource not found
void parse(java.io.InputStream inputStream)
throws java.io.IOException,
ResourceStreamNotFoundException
inputStream - The input stream to read and parse
java.io.IOException - Error while reading the resource
ResourceStreamNotFoundException - Resource not found
void parse(java.io.InputStream inputStream,
java.lang.String encoding)
throws java.io.IOException
inputStream - A resource like e.g. a fileencoding - Use null to apply JVM/OS default
java.io.IOException - Error while reading the resource
IXmlPullParser.HttpTagType next()
throws java.text.ParseException
java.text.ParseExceptionXmlTag getElement()
java.lang.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 | |||||||||