|
||||||||||
| 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.
| Method Summary | |
|---|---|
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.String |
getXmlDeclaration()
Return the XML declaration string, in case if found in the markup. |
boolean |
next()
Dissect the XML markup into tags and text. |
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 |
| Methods inherited from interface org.apache.wicket.markup.parser.IMarkupFilter |
|---|
getParent, nextTag, setParent |
| Method Detail |
|---|
java.lang.String getEncoding()
java.lang.String getXmlDeclaration()
java.lang.CharSequence getInputFromPositionMarker(int toPos)
toPos - To position
java.lang.CharSequence getInput(int fromPos,
int toPos)
fromPos - From positiontoPos - To position
boolean next()
throws java.text.ParseException
java.text.ParseException
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,
ResourceStreamNotFoundException
inputStream - A resource like e.g. a fileencoding - Use null to apply JVM/OS default
java.io.IOException - Error while reading the resource
ResourceStreamNotFoundException - Resource not foundvoid setPositionMarker()
void setPositionMarker(int pos)
pos -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||