@Deprecated public class XMLTokener extends JSONTokener
| Modifier and Type | Field and Description | 
|---|---|
static java.util.HashMap<java.lang.String,java.lang.Character> | 
entity
Deprecated.  
The table of entity values. 
 | 
| Constructor and Description | 
|---|
XMLTokener(java.io.Reader r)
Deprecated.  
Construct an XMLTokener from a Reader. 
 | 
XMLTokener(java.lang.String s)
Deprecated.  
Construct an XMLTokener from a string. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
java.lang.String | 
nextCDATA()
Deprecated.  
Get the text in the CDATA block. 
 | 
java.lang.Object | 
nextContent()
Deprecated.  
Get the next XML outer token, trimming whitespace. 
 | 
java.lang.Object | 
nextEntity(char ampersand)
Deprecated.  
{@code
 Return the next entity. 
 | 
java.lang.Object | 
nextMeta()
Deprecated.  
{@code
 Returns the next XML meta token. 
 | 
java.lang.Object | 
nextToken()
Deprecated.  
{@code
 Get the next XML Token. 
 | 
void | 
skipPast(java.lang.String to)
Deprecated.  
Skip characters until past the requested string. 
 | 
back, close, dehexchar, end, more, next, next, next, nextClean, nextString, nextTo, nextTo, nextValue, skipTo, syntaxError, syntaxError, toStringpublic static final java.util.HashMap<java.lang.String,java.lang.Character> entity
public XMLTokener(java.io.Reader r)
r - A source reader.public XMLTokener(java.lang.String s)
s - A source string.public java.lang.String nextCDATA()
                           throws JSONException
]]>.JSONException - If the ]]> is not found.public java.lang.Object nextContent()
                             throws JSONException
 '<'  character which begins a markup
 tag, and the content
 text between markup tags. '<'  Character, or null if
 there is no more source text.JSONException - if a called function has an errorpublic java.lang.Object nextEntity(char ampersand)
                            throws JSONException
 Return the next entity. These entities are translated to Characters:
     &  '  >  <  ".
 ampersand - An ampersand character.JSONException - If missing ';' in XML entity.public java.lang.Object nextMeta()
                          throws JSONException
 Returns the next XML meta token. This is used for skipping over <!...>
 and <?...?> structures.
   Syntax characters (< > / = ! ?) 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 java.lang.Object nextToken()
                           throws JSONException
 Get the next XML Token. These tokens are found inside of angle
 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.
 JSONException - If the XML is not well formed.public void skipPast(java.lang.String to)
to - A string to skip past.Copyright © 2010 - 2023 Adobe. All Rights Reserved