|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Objectorg.activiti.engine.impl.util.json.JSONTokener
org.activiti.engine.impl.util.json.XMLTokener
public class XMLTokener
The XMLTokener extends the JSONTokener to provide additional methods for the parsing of XML texts.
字段摘要 | |
---|---|
static HashMap |
entity
The table of entity values. |
构造方法摘要 | |
---|---|
XMLTokener(String s)
Construct an XMLTokener from a string. |
方法摘要 | |
---|---|
String |
nextCDATA()
Get the text in the CDATA block. |
Object |
nextContent()
Get the next XML outer token, trimming whitespace. |
Object |
nextEntity(char a)
Return the next entity. |
Object |
nextMeta()
Returns the next XML meta token. |
Object |
nextToken()
Get the next XML Token. |
boolean |
skipPast(String to)
Skip characters until past the requested string. |
从类 org.activiti.engine.impl.util.json.JSONTokener 继承的方法 |
---|
back, dehexchar, end, more, next, next, next, nextClean, nextString, nextTo, nextTo, nextValue, skipTo, syntaxError, toString |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
字段详细信息 |
---|
public static final HashMap entity
构造方法详细信息 |
---|
public XMLTokener(String s)
s
- A source string.方法详细信息 |
---|
public String nextCDATA() throws JSONException
]]>
.
JSONException
- If the ]]>
is not found.public Object nextContent() throws JSONException
JSONException
public Object nextEntity(char a) throws JSONException
& ' > < "
.
a
- An ampersand character.
JSONException
- If missing ';' in XML entity.public Object nextMeta() throws JSONException
< > / = ! ?
) are returned as
Character, and strings and names are returned as Boolean. We don't care
what the values actually are.
JSONException
- If a string is not properly closed or if the XML
is badly structured.public Object nextToken() throws JSONException
/ > = ! ?
or it
may be a string wrapped in single quotes or double quotes, or it may be a
name.
JSONException
- If the XML is not well formed.public boolean skipPast(String to) throws JSONException
to
- A string to skip past.
JSONException
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |