mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-09-07 19:14:15 +08:00
gradle support
This commit is contained in:
@@ -90,12 +90,13 @@ public class XMLTokener extends JSONTokener {
|
||||
|
||||
/**
|
||||
* Get the next XML outer token, trimming whitespace. There are two kinds
|
||||
* of tokens: the '<' character which begins a markup tag, and the content
|
||||
* of tokens: the <pre>{@code '<' }</pre> character which begins a markup
|
||||
* tag, and the content
|
||||
* text between markup tags.
|
||||
*
|
||||
* @return A string, or a '<' Character, or null if there is no more
|
||||
* source text.
|
||||
* @throws JSONException
|
||||
* @return A string, or a <pre>{@code '<' }</pre> Character, or null if
|
||||
* there is no more source text.
|
||||
* @throws JSONException if a called function has an error
|
||||
*/
|
||||
public Object nextContent() throws JSONException {
|
||||
char c;
|
||||
@@ -129,8 +130,10 @@ public class XMLTokener extends JSONTokener {
|
||||
|
||||
|
||||
/**
|
||||
* <pre>{@code
|
||||
* Return the next entity. These entities are translated to Characters:
|
||||
* <code>& ' > < "</code>.
|
||||
* & ' > < ".
|
||||
* }</pre>
|
||||
* @param ampersand An ampersand character.
|
||||
* @return A Character or an entity String if the entity is not recognized.
|
||||
* @throws JSONException If missing ';' in XML entity.
|
||||
@@ -183,11 +186,14 @@ public class XMLTokener extends JSONTokener {
|
||||
|
||||
|
||||
/**
|
||||
* <pre>{@code
|
||||
* Returns the next XML meta token. This is used for skipping over <!...>
|
||||
* and <?...?> structures.
|
||||
* @return Syntax characters (<code>< > / = ! ?</code>) are returned as
|
||||
* }</pre>
|
||||
* @return <pre>{@code Syntax characters (< > / = ! ?) are returned as
|
||||
* Character, and strings and names are returned as Boolean. We don't care
|
||||
* what the values actually are.
|
||||
* }</pre>
|
||||
* @throws JSONException If a string is not properly closed or if the XML
|
||||
* is badly structured.
|
||||
*/
|
||||
@@ -250,10 +256,12 @@ public class XMLTokener extends JSONTokener {
|
||||
|
||||
|
||||
/**
|
||||
* <pre>{@code
|
||||
* Get the next XML Token. These tokens are found inside of angle
|
||||
* brackets. It may be one of these characters: <code>/ > = ! ?</code> or it
|
||||
* brackets. It may be one of these characters: / > = ! ? or it
|
||||
* may be a string wrapped in single quotes or double quotes, or it may be a
|
||||
* name.
|
||||
* }</pre>
|
||||
* @return a String or a Character.
|
||||
* @throws JSONException If the XML is not well formed.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user