|
|
@@ -35,8 +35,8 @@ public class XMLTokener extends JSONTokener {
|
|
|
/**
|
|
|
* Get the text in the CDATA block.
|
|
|
*
|
|
|
- * @return The string up to the <code>]]></code>.
|
|
|
- * @throws JSONException If the <code>]]></code> is not found.
|
|
|
+ * @return The string up to the {@code ]]>}.
|
|
|
+ * @throws JSONException If the {@code ]]>} is not found.
|
|
|
*/
|
|
|
public String nextCDATA() throws JSONException {
|
|
|
char c;
|
|
|
@@ -91,7 +91,7 @@ public class XMLTokener extends JSONTokener {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Return the next entity. These entities are translated to Characters: <code>& ' > < "</code>.
|
|
|
+ * Return the next entity. These entities are translated to Characters: {@code & ' > < "}.
|
|
|
*
|
|
|
* @param ampersand An ampersand character.
|
|
|
* @return A Character or an entity String if the entity is not recognized.
|
|
|
@@ -117,7 +117,7 @@ public class XMLTokener extends JSONTokener {
|
|
|
/**
|
|
|
* Returns the next XML meta token. This is used for skipping over <!...> and <?...?> structures.
|
|
|
*
|
|
|
- * @return Syntax characters (<code>< > / = ! ?</code>) are returned as Character, and strings and names are returned as Boolean. We don't care what the values actually are.
|
|
|
+ * @return Syntax characters ({@code < > / = ! ?}) are returned as Character, and strings and names are returned as Boolean. We don't care what the values actually are.
|
|
|
* @throws JSONException 字符串中属性未关闭或XML结构错误抛出此异常。If a string is not properly closed or if the XML is badly structured.
|
|
|
*/
|
|
|
public Object nextMeta() throws JSONException {
|
|
|
@@ -177,7 +177,8 @@ public class XMLTokener extends JSONTokener {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Get the next XML Token. These tokens are found inside of angle brackets. It may be one of these characters: <code>/ > = ! ?</code> or it may be a string wrapped in single quotes or double
|
|
|
+ * Get the next XML Token. These tokens are found inside of angle brackets. <br>
|
|
|
+ * It may be one of these characters: {@code / > = ! ?} or it may be a string wrapped in single quotes or double
|
|
|
* quotes, or it may be a name.
|
|
|
*
|
|
|
* @return a String or a Character.
|