|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Parser
The Parser interface abstracts the behavior which the
org.eigenbase.xom package needs from an XML parser.
If you don't care which implementation you get, call XOMUtil.createDefaultParser() to create a parser.
| Method Summary | |
|---|---|
DOMWrapper |
create(java.lang.String tagName)
Creates a wrapper representing an XML element. |
boolean |
isKeepPositions()
Returns whether the parser is retaining position information. |
DOMWrapper |
parse(java.io.InputStream is)
Parses an input stream and returns a wrapped element. |
DOMWrapper |
parse(java.io.Reader reader)
Parses the contents of a reader and returns a wrapped element. |
DOMWrapper |
parse(java.lang.String sXml)
Parses a string and returns a wrapped element. |
DOMWrapper |
parse(java.net.URL url)
Parses the contents of a URL and returns a wrapped element. |
void |
setKeepPositions(boolean keepPositions)
Sets whether to retain position information. |
| Method Detail |
|---|
void setKeepPositions(boolean keepPositions)
keepPositions - Whether to keep position information.boolean isKeepPositions()
DOMWrapper parse(java.lang.String sXml)
throws XOMException
sXml - XML string
XOMException - on error
DOMWrapper parse(java.io.InputStream is)
throws XOMException
is - Input stream
XOMException - on error
DOMWrapper parse(java.net.URL url)
throws XOMException
url - URL
XOMException - on error
DOMWrapper parse(java.io.Reader reader)
throws XOMException
reader - Reader
XOMException - on errorDOMWrapper create(java.lang.String tagName)
tagName - Name of element
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||