Fix tag p

This commit is contained in:
boy0001 2015-03-13 18:05:06 +11:00
parent e887cf8aec
commit 1fedb1e347
18 changed files with 109 additions and 109 deletions

View File

@ -69,7 +69,7 @@ public final class CompoundTag extends Tag {
} }
/** /**
* Get a byte array named with the given key. <p/> <p> If the key does not exist or its value is not a byte array * Get a byte array named with the given key. <p> If the key does not exist or its value is not a byte array
* tag, then an empty byte array will be returned. </p> * tag, then an empty byte array will be returned. </p>
* *
* @param key the key * @param key the key
@ -86,7 +86,7 @@ public final class CompoundTag extends Tag {
} }
/** /**
* Get a byte named with the given key. <p/> <p> If the key does not exist or its value is not a byte tag, then * Get a byte named with the given key. <p> If the key does not exist or its value is not a byte tag, then
* {@code 0} will be returned. </p> * {@code 0} will be returned. </p>
* *
* @param key the key * @param key the key
@ -103,7 +103,7 @@ public final class CompoundTag extends Tag {
} }
/** /**
* Get a double named with the given key. <p/> <p> If the key does not exist or its value is not a double tag, then * Get a double named with the given key. <p> If the key does not exist or its value is not a double tag, then
* {@code 0} will be returned. </p> * {@code 0} will be returned. </p>
* *
* @param key the key * @param key the key
@ -120,7 +120,7 @@ public final class CompoundTag extends Tag {
} }
/** /**
* Get a double named with the given key, even if it's another type of number. <p/> <p> If the key does not exist or * Get a double named with the given key, even if it's another type of number. <p> If the key does not exist or
* its value is not a number, then {@code 0} will be returned. </p> * its value is not a number, then {@code 0} will be returned. </p>
* *
* @param key the key * @param key the key
@ -147,7 +147,7 @@ public final class CompoundTag extends Tag {
} }
/** /**
* Get a float named with the given key. <p/> <p> If the key does not exist or its value is not a float tag, then * Get a float named with the given key. <p> If the key does not exist or its value is not a float tag, then
* {@code 0} will be returned. </p> * {@code 0} will be returned. </p>
* *
* @param key the key * @param key the key
@ -164,7 +164,7 @@ public final class CompoundTag extends Tag {
} }
/** /**
* Get a {@code int[]} named with the given key. <p/> <p> If the key does not exist or its value is not an int array * Get a {@code int[]} named with the given key. <p> If the key does not exist or its value is not an int array
* tag, then an empty array will be returned. </p> * tag, then an empty array will be returned. </p>
* *
* @param key the key * @param key the key
@ -181,7 +181,7 @@ public final class CompoundTag extends Tag {
} }
/** /**
* Get an int named with the given key. <p/> <p> If the key does not exist or its value is not an int tag, then * Get an int named with the given key. <p> If the key does not exist or its value is not an int tag, then
* {@code 0} will be returned. </p> * {@code 0} will be returned. </p>
* *
* @param key the key * @param key the key
@ -198,7 +198,7 @@ public final class CompoundTag extends Tag {
} }
/** /**
* Get an int named with the given key, even if it's another type of number. <p/> <p> If the key does not exist or * Get an int named with the given key, even if it's another type of number. <p> If the key does not exist or
* its value is not a number, then {@code 0} will be returned. </p> * its value is not a number, then {@code 0} will be returned. </p>
* *
* @param key the key * @param key the key
@ -225,7 +225,7 @@ public final class CompoundTag extends Tag {
} }
/** /**
* Get a list of tags named with the given key. <p/> <p> If the key does not exist or its value is not a list tag, * Get a list of tags named with the given key. <p> If the key does not exist or its value is not a list tag,
* then an empty list will be returned. </p> * then an empty list will be returned. </p>
* *
* @param key the key * @param key the key
@ -242,7 +242,7 @@ public final class CompoundTag extends Tag {
} }
/** /**
* Get a {@code TagList} named with the given key. <p/> <p> If the key does not exist or its value is not a list * Get a {@code TagList} named with the given key. <p> If the key does not exist or its value is not a list
* tag, then an empty tag list will be returned. </p> * tag, then an empty tag list will be returned. </p>
* *
* @param key the key * @param key the key
@ -259,7 +259,7 @@ public final class CompoundTag extends Tag {
} }
/** /**
* Get a list of tags named with the given key. <p/> <p> If the key does not exist or its value is not a list tag, * Get a list of tags named with the given key. <p> If the key does not exist or its value is not a list tag,
* then an empty list will be returned. If the given key references a list but the list of of a different type, then * then an empty list will be returned. If the given key references a list but the list of of a different type, then
* an empty list will also be returned. </p> * an empty list will also be returned. </p>
* *
@ -285,7 +285,7 @@ public final class CompoundTag extends Tag {
} }
/** /**
* Get a long named with the given key. <p/> <p> If the key does not exist or its value is not a long tag, then * Get a long named with the given key. <p> If the key does not exist or its value is not a long tag, then
* {@code 0} will be returned. </p> * {@code 0} will be returned. </p>
* *
* @param key the key * @param key the key
@ -302,7 +302,7 @@ public final class CompoundTag extends Tag {
} }
/** /**
* Get a long named with the given key, even if it's another type of number. <p/> <p> If the key does not exist or * Get a long named with the given key, even if it's another type of number. <p> If the key does not exist or
* its value is not a number, then {@code 0} will be returned. </p> * its value is not a number, then {@code 0} will be returned. </p>
* *
* @param key the key * @param key the key
@ -329,7 +329,7 @@ public final class CompoundTag extends Tag {
} }
/** /**
* Get a short named with the given key. <p/> <p> If the key does not exist or its value is not a short tag, then * Get a short named with the given key. <p> If the key does not exist or its value is not a short tag, then
* {@code 0} will be returned. </p> * {@code 0} will be returned. </p>
* *
* @param key the key * @param key the key
@ -346,7 +346,7 @@ public final class CompoundTag extends Tag {
} }
/** /**
* Get a string named with the given key. <p/> <p> If the key does not exist or its value is not a string tag, then * Get a string named with the given key. <p> If the key does not exist or its value is not a string tag, then
* {@code ""} will be returned. </p> * {@code ""} will be returned. </p>
* *
* @param key the key * @param key the key

View File

@ -84,7 +84,7 @@ public final class ListTag extends Tag {
} }
/** /**
* Get a byte array named with the given index. <p/> <p> If the index does not exist or its value is not a byte * Get a byte array named with the given index. <p> If the index does not exist or its value is not a byte
* array tag, then an empty byte array will be returned. </p> * array tag, then an empty byte array will be returned. </p>
* *
* @param index the index * @param index the index
@ -101,7 +101,7 @@ public final class ListTag extends Tag {
} }
/** /**
* Get a byte named with the given index. <p/> <p> If the index does not exist or its value is not a byte tag, then * Get a byte named with the given index. <p> If the index does not exist or its value is not a byte tag, then
* {@code 0} will be returned. </p> * {@code 0} will be returned. </p>
* *
* @param index the index * @param index the index
@ -118,7 +118,7 @@ public final class ListTag extends Tag {
} }
/** /**
* Get a double named with the given index. <p/> <p> If the index does not exist or its value is not a double tag, * Get a double named with the given index. <p> If the index does not exist or its value is not a double tag,
* then {@code 0} will be returned. </p> * then {@code 0} will be returned. </p>
* *
* @param index the index * @param index the index
@ -135,7 +135,7 @@ public final class ListTag extends Tag {
} }
/** /**
* Get a double named with the given index, even if it's another type of number. <p/> <p> If the index does not * Get a double named with the given index, even if it's another type of number. <p> If the index does not
* exist or its value is not a number, then {@code 0} will be returned. </p> * exist or its value is not a number, then {@code 0} will be returned. </p>
* *
* @param index the index * @param index the index
@ -162,7 +162,7 @@ public final class ListTag extends Tag {
} }
/** /**
* Get a float named with the given index. <p/> <p> If the index does not exist or its value is not a float tag, * Get a float named with the given index. <p> If the index does not exist or its value is not a float tag,
* then {@code 0} will be returned. </p> * then {@code 0} will be returned. </p>
* *
* @param index the index * @param index the index
@ -179,7 +179,7 @@ public final class ListTag extends Tag {
} }
/** /**
* Get a {@code int[]} named with the given index. <p/> <p> If the index does not exist or its value is not an int * Get a {@code int[]} named with the given index. <p> If the index does not exist or its value is not an int
* array tag, then an empty array will be returned. </p> * array tag, then an empty array will be returned. </p>
* *
* @param index the index * @param index the index
@ -196,7 +196,7 @@ public final class ListTag extends Tag {
} }
/** /**
* Get an int named with the given index. <p/> <p> If the index does not exist or its value is not an int tag, then * Get an int named with the given index. <p> If the index does not exist or its value is not an int tag, then
* {@code 0} will be returned. </p> * {@code 0} will be returned. </p>
* *
* @param index the index * @param index the index
@ -213,7 +213,7 @@ public final class ListTag extends Tag {
} }
/** /**
* Get an int named with the given index, even if it's another type of number. <p/> <p> If the index does not exist * Get an int named with the given index, even if it's another type of number. <p> If the index does not exist
* or its value is not a number, then {@code 0} will be returned. </p> * or its value is not a number, then {@code 0} will be returned. </p>
* *
* @param index the index * @param index the index
@ -240,7 +240,7 @@ public final class ListTag extends Tag {
} }
/** /**
* Get a list of tags named with the given index. <p/> <p> If the index does not exist or its value is not a list * Get a list of tags named with the given index. <p> If the index does not exist or its value is not a list
* tag, then an empty list will be returned. </p> * tag, then an empty list will be returned. </p>
* *
* @param index the index * @param index the index
@ -257,7 +257,7 @@ public final class ListTag extends Tag {
} }
/** /**
* Get a {@code TagList} named with the given index. <p/> <p> If the index does not exist or its value is not a list * Get a {@code TagList} named with the given index. <p> If the index does not exist or its value is not a list
* tag, then an empty tag list will be returned. </p> * tag, then an empty tag list will be returned. </p>
* *
* @param index the index * @param index the index
@ -274,7 +274,7 @@ public final class ListTag extends Tag {
} }
/** /**
* Get a list of tags named with the given index. <p/> <p> If the index does not exist or its value is not a list * Get a list of tags named with the given index. <p> If the index does not exist or its value is not a list
* tag, then an empty list will be returned. If the given index references a list but the list of of a different * tag, then an empty list will be returned. If the given index references a list but the list of of a different
* type, then an empty list will also be returned. </p> * type, then an empty list will also be returned. </p>
* *
@ -300,7 +300,7 @@ public final class ListTag extends Tag {
} }
/** /**
* Get a long named with the given index. <p/> <p> If the index does not exist or its value is not a long tag, then * Get a long named with the given index. <p> If the index does not exist or its value is not a long tag, then
* {@code 0} will be returned. </p> * {@code 0} will be returned. </p>
* *
* @param index the index * @param index the index
@ -317,7 +317,7 @@ public final class ListTag extends Tag {
} }
/** /**
* Get a long named with the given index, even if it's another type of number. <p/> <p> If the index does not exist * Get a long named with the given index, even if it's another type of number. <p> If the index does not exist
* or its value is not a number, then {@code 0} will be returned. </p> * or its value is not a number, then {@code 0} will be returned. </p>
* *
* @param index the index * @param index the index
@ -344,7 +344,7 @@ public final class ListTag extends Tag {
} }
/** /**
* Get a short named with the given index. <p/> <p> If the index does not exist or its value is not a short tag, * Get a short named with the given index. <p> If the index does not exist or its value is not a short tag,
* then {@code 0} will be returned. </p> * then {@code 0} will be returned. </p>
* *
* @param index the index * @param index the index
@ -361,7 +361,7 @@ public final class ListTag extends Tag {
} }
/** /**
* Get a string named with the given index. <p/> <p> If the index does not exist or its value is not a string tag, * Get a string named with the given index. <p> If the index does not exist or its value is not a string tag,
* then {@code ""} will be returned. </p> * then {@code ""} will be returned. </p>
* *
* @param index the index * @param index the index

View File

@ -11,7 +11,7 @@ import java.util.Map;
/** /**
* This class reads <strong>NBT</strong>, or <strong>Named Binary Tag</strong> streams, and produces an object graph of * This class reads <strong>NBT</strong>, or <strong>Named Binary Tag</strong> streams, and produces an object graph of
* subclasses of the {@code Tag} object. <p/> <p> The NBT format was created by Markus Persson, and the specification * subclasses of the {@code Tag} object. <p> The NBT format was created by Markus Persson, and the specification
* may be found at <a href="http://www.minecraft.net/docs/NBT.txt"> http://www.minecraft.net/docs/NBT.txt</a>. </p> * may be found at <a href="http://www.minecraft.net/docs/NBT.txt"> http://www.minecraft.net/docs/NBT.txt</a>. </p>
*/ */
public final class NBTInputStream implements Closeable { public final class NBTInputStream implements Closeable {

View File

@ -28,7 +28,7 @@ import java.util.List;
/** /**
* <p> This class writes <strong>NBT</strong>, or <strong>Named Binary Tag</strong> <code>Tag</code> objects to an * <p> This class writes <strong>NBT</strong>, or <strong>Named Binary Tag</strong> <code>Tag</code> objects to an
* underlying <code>OutputStream</code>. </p> <p/> <p> The NBT format was created by Markus Persson, and the * underlying <code>OutputStream</code>. </p> <p> The NBT format was created by Markus Persson, and the
* specification may be found at <a href="http://www.minecraft.net/docs/NBT.txt"> http://www.minecraft.net/docs/NBT.txt</a>. * specification may be found at <a href="http://www.minecraft.net/docs/NBT.txt"> http://www.minecraft.net/docs/NBT.txt</a>.
* </p> * </p>
* *

View File

@ -4,13 +4,13 @@ package com.intellectualcrafters.json;
* This provides static methods to convert comma delimited text into a JSONArray, and to covert a JSONArray into comma * This provides static methods to convert comma delimited text into a JSONArray, and to covert a JSONArray into comma
* delimited text. Comma delimited text is a very popular format for data interchange. It is understood by most * delimited text. Comma delimited text is a very popular format for data interchange. It is understood by most
* database, spreadsheet, and organizer programs. * database, spreadsheet, and organizer programs.
* <p/> *
* Each row of text represents a row in a table or a data record. Each row ends with a NEWLINE character. Each row * Each row of text represents a row in a table or a data record. Each row ends with a NEWLINE character. Each row
* contains one or more values. Values are separated by commas. A value can contain any character except for comma, * contains one or more values. Values are separated by commas. A value can contain any character except for comma,
* unless is is wrapped in single quotes or double quotes. * unless is is wrapped in single quotes or double quotes.
* <p/> *
* The first row usually contains the names of the columns. * The first row usually contains the names of the columns.
* <p/> *
* A comma delimited list can be converted into a JSONArray of JSONObjects. The names for the elements in the * A comma delimited list can be converted into a JSONArray of JSONObjects. The names for the elements in the
* JSONObjects can be taken from the names in the first row. * JSONObjects can be taken from the names in the first row.
* *

View File

@ -13,7 +13,7 @@ public class CookieList {
* Convert a cookie list into a JSONObject. A cookie list is a sequence of name/value pairs. The names are separated * Convert a cookie list into a JSONObject. A cookie list is a sequence of name/value pairs. The names are separated
* from the values by '='. The pairs are separated by ';'. The names and the values will be unescaped, possibly * from the values by '='. The pairs are separated by ';'. The names and the values will be unescaped, possibly
* converting '+' and '%' sequences. * converting '+' and '%' sequences.
* <p/> *
* To add a cookie to a cooklist, cookielistJSONObject.put(cookieJSONObject.getString("name"), * To add a cookie to a cooklist, cookielistJSONObject.put(cookieJSONObject.getString("name"),
* cookieJSONObject.getString("value")); * cookieJSONObject.getString("value"));
* *

View File

@ -37,8 +37,8 @@ public class HTTP {
/** /**
* Convert an HTTP header string into a JSONObject. It can be a request header or a response header. A request * Convert an HTTP header string into a JSONObject. It can be a request header or a response header. A request
* header will contain * header will contain
* <p/> *
* <p/> *
* <pre> * <pre>
* { * {
* Method: "POST" (for example), * Method: "POST" (for example),
@ -46,10 +46,10 @@ public class HTTP {
* "HTTP-Version": "HTTP/1.1" (for example) * "HTTP-Version": "HTTP/1.1" (for example)
* } * }
* </pre> * </pre>
* <p/> *
* A response header will contain * A response header will contain
* <p/> *
* <p/> *
* <pre> * <pre>
* { * {
* "HTTP-Version": "HTTP/1.1" (for example), * "HTTP-Version": "HTTP/1.1" (for example),
@ -57,20 +57,20 @@ public class HTTP {
* "Reason-Phrase": "OK" (for example) * "Reason-Phrase": "OK" (for example)
* } * }
* </pre> * </pre>
* <p/> *
* In addition, the other parameters in the header will be captured, using the HTTP field names as JSON names, so * In addition, the other parameters in the header will be captured, using the HTTP field names as JSON names, so
* that * that
* <p/> *
* <p/> *
* <pre> * <pre>
* Date: Sun, 26 May 2002 18:06:04 GMT * Date: Sun, 26 May 2002 18:06:04 GMT
* Cookie: Q=q2=PPEAsg--; B=677gi6ouf29bn&b=2&f=s * Cookie: Q=q2=PPEAsg--; B=677gi6ouf29bn&b=2&f=s
* Cache-Control: no-cache * Cache-Control: no-cache
* </pre> * </pre>
* <p/> *
* become * become
* <p/> *
* <p/> *
* <pre> * <pre>
* {... * {...
* Date: "Sun, 26 May 2002 18:06:04 GMT", * Date: "Sun, 26 May 2002 18:06:04 GMT",
@ -78,7 +78,7 @@ public class HTTP {
* "Cache-Control": "no-cache", * "Cache-Control": "no-cache",
* ...} * ...}
* </pre> * </pre>
* <p/> *
* It does no further checking or conversion. It does not parse dates. It does not do '%' transforms on URLs. * It does no further checking or conversion. It does not parse dates. It does not do '%' transforms on URLs.
* *
* @param string An HTTP header string. * @param string An HTTP header string.
@ -116,8 +116,8 @@ public class HTTP {
/** /**
* Convert a JSONObject into an HTTP header. A request header must contain * Convert a JSONObject into an HTTP header. A request header must contain
* <p/> *
* <p/> *
* <pre> * <pre>
* { * {
* Method: "POST" (for example), * Method: "POST" (for example),
@ -125,10 +125,10 @@ public class HTTP {
* "HTTP-Version": "HTTP/1.1" (for example) * "HTTP-Version": "HTTP/1.1" (for example)
* } * }
* </pre> * </pre>
* <p/> *
* A response header must contain * A response header must contain
* <p/> *
* <p/> *
* <pre> * <pre>
* { * {
* "HTTP-Version": "HTTP/1.1" (for example), * "HTTP-Version": "HTTP/1.1" (for example),
@ -136,7 +136,7 @@ public class HTTP {
* "Reason-Phrase": "OK" (for example) * "Reason-Phrase": "OK" (for example)
* } * }
* </pre> * </pre>
* <p/> *
* Any other members of the JSONObject will be output as HTTP fields. The result will end with two CRLF pairs. * Any other members of the JSONObject will be output as HTTP fields. The result will end with two CRLF pairs.
* *
* @param jo A JSONObject * @param jo A JSONObject

View File

@ -34,16 +34,16 @@ import java.util.Map;
* accessing the values by index, and <code>put</code> methods for adding or replacing values. The values can be any of * accessing the values by index, and <code>put</code> methods for adding or replacing values. The values can be any of
* these types: <code>Boolean</code>, <code>JSONArray</code>, <code>JSONObject</code>, <code>Number</code>, * these types: <code>Boolean</code>, <code>JSONArray</code>, <code>JSONObject</code>, <code>Number</code>,
* <code>String</code>, or the <code>JSONObject.NULL object</code>. * <code>String</code>, or the <code>JSONObject.NULL object</code>.
* <p/> *
* The constructor can convert a JSON text into a Java object. The <code>toString</code> method converts to JSON text. * The constructor can convert a JSON text into a Java object. The <code>toString</code> method converts to JSON text.
* <p/> *
* A <code>get</code> method returns a value if one can be found, and throws an exception if one cannot be found. An * A <code>get</code> method returns a value if one can be found, and throws an exception if one cannot be found. An
* <code>opt</code> method returns a default value instead of throwing an exception, and so is useful for obtaining * <code>opt</code> method returns a default value instead of throwing an exception, and so is useful for obtaining
* optional values. * optional values.
* <p/> *
* The generic <code>get()</code> and <code>opt()</code> methods return an object which you can cast or query for type. * The generic <code>get()</code> and <code>opt()</code> methods return an object which you can cast or query for type.
* There are also typed <code>get</code> and <code>opt</code> methods that do type checking and type coercion for you. * There are also typed <code>get</code> and <code>opt</code> methods that do type checking and type coercion for you.
* <p/> *
* The texts produced by the <code>toString</code> methods strictly conform to JSON syntax rules. The constructors are * The texts produced by the <code>toString</code> methods strictly conform to JSON syntax rules. The constructors are
* more forgiving in the texts they will accept: <ul> <li>An extra <code>,</code>&nbsp;<small>(comma)</small> may appear * more forgiving in the texts they will accept: <ul> <li>An extra <code>,</code>&nbsp;<small>(comma)</small> may appear
* just before the closing bracket.</li> <li>The <code>null</code> value will be inserted when there is <code>,</code> * just before the closing bracket.</li> <li>The <code>null</code> value will be inserted when there is <code>,</code>
@ -789,7 +789,7 @@ public class JSONArray {
* Make a JSON text of this JSONArray. For compactness, no unnecessary whitespace is added. If it is not possible to * Make a JSON text of this JSONArray. For compactness, no unnecessary whitespace is added. If it is not possible to
* produce a syntactically correct JSON text then null will be returned instead. This could occur if the array * produce a syntactically correct JSON text then null will be returned instead. This could occur if the array
* contains an invalid number. * contains an invalid number.
* <p/> *
* Warning: This method assumes that the data structure is acyclical. * Warning: This method assumes that the data structure is acyclical.
* *
* @return a printable, displayable, transmittable representation of the array. * @return a printable, displayable, transmittable representation of the array.
@ -824,7 +824,7 @@ public class JSONArray {
/** /**
* Write the contents of the JSONArray as JSON text to a writer. For compactness, no whitespace is added. * Write the contents of the JSONArray as JSON text to a writer. For compactness, no whitespace is added.
* <p/> *
* Warning: This method assumes that the data structure is acyclical. * Warning: This method assumes that the data structure is acyclical.
* *
* @return The writer. * @return The writer.
@ -837,7 +837,7 @@ public class JSONArray {
/** /**
* Write the contents of the JSONArray as JSON text to a writer. For compactness, no whitespace is added. * Write the contents of the JSONArray as JSON text to a writer. For compactness, no whitespace is added.
* <p/> *
* Warning: This method assumes that the data structure is acyclical. * Warning: This method assumes that the data structure is acyclical.
* *
* @param indentFactor The number of spaces to add to each level of indentation. * @param indentFactor The number of spaces to add to each level of indentation.

View File

@ -222,7 +222,7 @@ public class JSONML {
* XML tag is represented as a JSONObject with a "tagName" property. If the tag has attributes, then the attributes * XML tag is represented as a JSONObject with a "tagName" property. If the tag has attributes, then the attributes
* will be in the JSONObject as properties. If the tag contains children, the object will have a "childNodes" * will be in the JSONObject as properties. If the tag contains children, the object will have a "childNodes"
* property which will be an array of strings and JsonML JSONObjects. * property which will be an array of strings and JsonML JSONObjects.
* <p/> *
* Comments, prologs, DTDs, and <code>&lt;[ [ ]]></code> are ignored. * Comments, prologs, DTDs, and <code>&lt;[ [ ]]></code> are ignored.
* *
* @param x An XMLTokener of the XML source text. * @param x An XMLTokener of the XML source text.
@ -240,7 +240,7 @@ public class JSONML {
* XML tag is represented as a JSONObject with a "tagName" property. If the tag has attributes, then the attributes * XML tag is represented as a JSONObject with a "tagName" property. If the tag has attributes, then the attributes
* will be in the JSONObject as properties. If the tag contains children, the object will have a "childNodes" * will be in the JSONObject as properties. If the tag contains children, the object will have a "childNodes"
* property which will be an array of strings and JsonML JSONObjects. * property which will be an array of strings and JsonML JSONObjects.
* <p/> *
* Comments, prologs, DTDs, and <code>&lt;[ [ ]]></code> are ignored. * Comments, prologs, DTDs, and <code>&lt;[ [ ]]></code> are ignored.
* *
* @param string The XML source text. * @param string The XML source text.

View File

@ -27,21 +27,21 @@ import java.util.Set;
* values into a JSON text using the <code>put</code> and <code>toString</code> methods. A <code>get</code> method * values into a JSON text using the <code>put</code> and <code>toString</code> methods. A <code>get</code> method
* returns a value if one can be found, and throws an exception if one cannot be found. An <code>opt</code> method * returns a value if one can be found, and throws an exception if one cannot be found. An <code>opt</code> method
* returns a default value instead of throwing an exception, and so is useful for obtaining optional values. * returns a default value instead of throwing an exception, and so is useful for obtaining optional values.
* <p/> *
* The generic <code>get()</code> and <code>opt()</code> methods return an object, which you can cast or query for type. * The generic <code>get()</code> and <code>opt()</code> methods return an object, which you can cast or query for type.
* There are also typed <code>get</code> and <code>opt</code> methods that do type checking and type coercion for you. * There are also typed <code>get</code> and <code>opt</code> methods that do type checking and type coercion for you.
* The opt methods differ from the get methods in that they do not throw. Instead, they return a specified value, such * The opt methods differ from the get methods in that they do not throw. Instead, they return a specified value, such
* as null. * as null.
* <p/> *
* The <code>put</code> methods add or replace values in an object. For example, * The <code>put</code> methods add or replace values in an object. For example,
* <p/> *
* <p/> *
* <pre> * <pre>
* myString = new JSONObject().put(&quot;JSON&quot;, &quot;Hello, World!&quot;).toString(); * myString = new JSONObject().put(&quot;JSON&quot;, &quot;Hello, World!&quot;).toString();
* </pre> * </pre>
* <p/> *
* produces the string <code>{"JSON": "Hello, World"}</code>. * produces the string <code>{"JSON": "Hello, World"}</code>.
* <p/> *
* The texts produced by the <code>toString</code> methods strictly conform to the JSON syntax rules. The constructors * The texts produced by the <code>toString</code> methods strictly conform to the JSON syntax rules. The constructors
* are more forgiving in the texts they will accept: <ul> <li>An extra <code>,</code>&nbsp;<small>(comma)</small> may * are more forgiving in the texts they will accept: <ul> <li>An extra <code>,</code>&nbsp;<small>(comma)</small> may
* appear just before the closing brace.</li> <li>Strings may be quoted with <code>'</code>&nbsp;<small>(single * appear just before the closing brace.</li> <li>Strings may be quoted with <code>'</code>&nbsp;<small>(single
@ -164,10 +164,10 @@ public class JSONObject {
* For each of the methods with no parameters and a name starting with <code>"get"</code> or <code>"is"</code> * For each of the methods with no parameters and a name starting with <code>"get"</code> or <code>"is"</code>
* followed by an uppercase letter, the method is invoked, and a key and the value returned from the getter method * followed by an uppercase letter, the method is invoked, and a key and the value returned from the getter method
* are put into the new JSONObject. * are put into the new JSONObject.
* <p/> *
* The key is formed by removing the <code>"get"</code> or <code>"is"</code> prefix. If the second remaining * The key is formed by removing the <code>"get"</code> or <code>"is"</code> prefix. If the second remaining
* character is not upper case, then the first character is converted to lower case. * character is not upper case, then the first character is converted to lower case.
* <p/> *
* For example, if an object has a method named <code>"getName"</code>, and if the result of calling * For example, if an object has a method named <code>"getName"</code>, and if the result of calling
* <code>object.getName()</code> is <code>"Larry Fine"</code>, then the JSONObject will contain <code>"name": "Larry * <code>object.getName()</code> is <code>"Larry Fine"</code>, then the JSONObject will contain <code>"name": "Larry
* Fine"</code>. * Fine"</code>.
@ -495,8 +495,8 @@ public class JSONObject {
* If the value is an array or Collection, then a JSONArray will be made from it and its toJSONString method will be * If the value is an array or Collection, then a JSONArray will be made from it and its toJSONString method will be
* called. If the value is a MAP, then a JSONObject will be made from it and its toJSONString method will be called. * called. If the value is a MAP, then a JSONObject will be made from it and its toJSONString method will be called.
* Otherwise, the value's toString method will be called, and the result will be quoted. * Otherwise, the value's toString method will be called, and the result will be quoted.
* <p/> *
* <p/> *
* Warning: This method assumes that the data structure is acyclical. * Warning: This method assumes that the data structure is acyclical.
* *
* @param value The value to be serialized. * @param value The value to be serialized.
@ -620,7 +620,7 @@ public class JSONObject {
* Accumulate values under a key. It is similar to the put method except that if there is already an object stored * Accumulate values under a key. It is similar to the put method except that if there is already an object stored
* under the key then a JSONArray is stored under the key to hold all of the accumulated values. If there is already * under the key then a JSONArray is stored under the key to hold all of the accumulated values. If there is already
* a JSONArray, then the new value is appended to it. In contrast, the put method replaces the previous value. * a JSONArray, then the new value is appended to it. In contrast, the put method replaces the previous value.
* <p/> *
* If only one value is accumulated that is not a JSONArray, then the result will be the same as using put. But if * If only one value is accumulated that is not a JSONArray, then the result will be the same as using put. But if
* multiple values are accumulated, then the result will be like append. * multiple values are accumulated, then the result will be like append.
* *
@ -1347,7 +1347,7 @@ public class JSONObject {
/** /**
* Make a JSON text of this JSONObject. For compactness, no whitespace is added. If this would not result in a * Make a JSON text of this JSONObject. For compactness, no whitespace is added. If this would not result in a
* syntactically correct JSON text, then null will be returned instead. * syntactically correct JSON text, then null will be returned instead.
* <p/> *
* Warning: This method assumes that the data structure is acyclical. * Warning: This method assumes that the data structure is acyclical.
* *
* @return a printable, displayable, portable, transmittable representation of the object, beginning with * @return a printable, displayable, portable, transmittable representation of the object, beginning with
@ -1365,7 +1365,7 @@ public class JSONObject {
/** /**
* Make a prettyprinted JSON text of this JSONObject. * Make a prettyprinted JSON text of this JSONObject.
* <p/> *
* Warning: This method assumes that the data structure is acyclical. * Warning: This method assumes that the data structure is acyclical.
* *
* @param indentFactor The number of spaces to add to each level of indentation. * @param indentFactor The number of spaces to add to each level of indentation.
@ -1385,7 +1385,7 @@ public class JSONObject {
/** /**
* Write the contents of the JSONObject as JSON text to a writer. For compactness, no whitespace is added. * Write the contents of the JSONObject as JSON text to a writer. For compactness, no whitespace is added.
* <p/> *
* Warning: This method assumes that the data structure is acyclical. * Warning: This method assumes that the data structure is acyclical.
* *
* @return The writer. * @return The writer.
@ -1398,7 +1398,7 @@ public class JSONObject {
/** /**
* Write the contents of the JSONObject as JSON text to a writer. For compactness, no whitespace is added. * Write the contents of the JSONObject as JSON text to a writer. For compactness, no whitespace is added.
* <p/> *
* Warning: This method assumes that the data structure is acyclical. * Warning: This method assumes that the data structure is acyclical.
* *
* @return The writer. * @return The writer.

View File

@ -6,28 +6,28 @@ import java.io.StringWriter;
* JSONStringer provides a quick and convenient way of producing JSON text. The texts produced strictly conform to JSON * JSONStringer provides a quick and convenient way of producing JSON text. The texts produced strictly conform to JSON
* syntax rules. No whitespace is added, so the results are ready for transmission or storage. Each instance of * syntax rules. No whitespace is added, so the results are ready for transmission or storage. Each instance of
* JSONStringer can produce one JSON text. * JSONStringer can produce one JSON text.
* <p/> *
* A JSONStringer instance provides a <code>value</code> method for appending values to the text, and a <code>key</code> * A JSONStringer instance provides a <code>value</code> method for appending values to the text, and a <code>key</code>
* method for adding keys before values in objects. There are <code>array</code> and <code>endArray</code> methods that * method for adding keys before values in objects. There are <code>array</code> and <code>endArray</code> methods that
* make and bound array values, and <code>object</code> and <code>endObject</code> methods which make and bound object * make and bound array values, and <code>object</code> and <code>endObject</code> methods which make and bound object
* values. All of these methods return the JSONWriter instance, permitting cascade style. For example, * values. All of these methods return the JSONWriter instance, permitting cascade style. For example,
* <p/> *
* <p/> *
* <pre> * <pre>
* myString = new JSONStringer().object().key(&quot;JSON&quot;).value(&quot;Hello, * myString = new JSONStringer().object().key(&quot;JSON&quot;).value(&quot;Hello,
* World!&quot;).endObject().toString(); * World!&quot;).endObject().toString();
* </pre> * </pre>
* <p/> *
* which produces the string * which produces the string
* <p/> *
* <p/> *
* <pre> * <pre>
* {"JSON":"Hello, World!"} * {"JSON":"Hello, World!"}
* </pre> * </pre>
* <p/> *
* The first method called must be <code>array</code> or <code>object</code>. There are no methods for adding commas or * The first method called must be <code>array</code> or <code>object</code>. There are no methods for adding commas or
* colons. JSONStringer adds them for you. Objects and arrays can be nested up to 20 levels deep. * colons. JSONStringer adds them for you. Objects and arrays can be nested up to 20 levels deep.
* <p/> *
* This can sometimes be easier than using a JSONObject to build a string. * This can sometimes be easier than using a JSONObject to build a string.
* *
* @author JSON.org * @author JSON.org

View File

@ -7,27 +7,27 @@ import java.io.Writer;
* JSONWriter provides a quick and convenient way of producing JSON text. The texts produced strictly conform to JSON * JSONWriter provides a quick and convenient way of producing JSON text. The texts produced strictly conform to JSON
* syntax rules. No whitespace is added, so the results are ready for transmission or storage. Each instance of * syntax rules. No whitespace is added, so the results are ready for transmission or storage. Each instance of
* JSONWriter can produce one JSON text. * JSONWriter can produce one JSON text.
* <p/> *
* A JSONWriter instance provides a <code>value</code> method for appending values to the text, and a <code>key</code> * A JSONWriter instance provides a <code>value</code> method for appending values to the text, and a <code>key</code>
* method for adding keys before values in objects. There are <code>array</code> and <code>endArray</code> methods that * method for adding keys before values in objects. There are <code>array</code> and <code>endArray</code> methods that
* make and bound array values, and <code>object</code> and <code>endObject</code> methods which make and bound object * make and bound array values, and <code>object</code> and <code>endObject</code> methods which make and bound object
* values. All of these methods return the JSONWriter instance, permitting a cascade style. For example, * values. All of these methods return the JSONWriter instance, permitting a cascade style. For example,
* <p/> *
* <p/> *
* <pre> * <pre>
* new JSONWriter(myWriter).object().key(&quot;JSON&quot;).value(&quot;Hello, World!&quot;).endObject(); * new JSONWriter(myWriter).object().key(&quot;JSON&quot;).value(&quot;Hello, World!&quot;).endObject();
* </pre> * </pre>
* <p/> *
* which writes * which writes
* <p/> *
* <p/> *
* <pre> * <pre>
* {"JSON":"Hello, World!"} * {"JSON":"Hello, World!"}
* </pre> * </pre>
* <p/> *
* The first method called must be <code>array</code> or <code>object</code>. There are no methods for adding commas or * The first method called must be <code>array</code> or <code>object</code>. There are no methods for adding commas or
* colons. JSONWriter adds them for you. Objects and arrays can be nested up to 20 levels deep. * colons. JSONWriter adds them for you. Objects and arrays can be nested up to 20 levels deep.
* <p/> *
* This can sometimes be easier than using a JSONObject to build a string. * This can sometimes be easier than using a JSONObject to build a string.
* *
* @author JSON.org * @author JSON.org

View File

@ -5,22 +5,22 @@ package com.intellectualcrafters.json;
* byte. The last byte of a character never has the MSB reset. Every byte that is not the last byte has the MSB set. Kim * byte. The last byte of a character never has the MSB reset. Every byte that is not the last byte has the MSB set. Kim
* stands for "Keep it minimal". A Unicode character is never longer than 3 bytes. Every byte contributes 7 bits to the * stands for "Keep it minimal". A Unicode character is never longer than 3 bytes. Every byte contributes 7 bits to the
* character. ASCII is unmodified. * character. ASCII is unmodified.
* <p/> *
* Kim UTF-8 one byte U+007F U+007F two bytes U+3FFF U+07FF three bytes U+10FFF U+FFFF four bytes U+10FFFF * Kim UTF-8 one byte U+007F U+007F two bytes U+3FFF U+07FF three bytes U+10FFF U+FFFF four bytes U+10FFFF
* <p/> *
* Characters in the ranges U+0800..U+3FFF and U+10000..U+10FFFF will be one byte smaller when encoded in Kim compared * Characters in the ranges U+0800..U+3FFF and U+10000..U+10FFFF will be one byte smaller when encoded in Kim compared
* to UTF-8. * to UTF-8.
* <p/> *
* Kim is beneficial when using scripts such as Old South Arabian, Aramaic, Avestan, Balinese, Batak, Bopomofo, * Kim is beneficial when using scripts such as Old South Arabian, Aramaic, Avestan, Balinese, Batak, Bopomofo,
* Buginese, Buhid, Carian, Cherokee, Coptic, Cyrillic, Deseret, Egyptian Hieroglyphs, Ethiopic, Georgian, Glagolitic, * Buginese, Buhid, Carian, Cherokee, Coptic, Cyrillic, Deseret, Egyptian Hieroglyphs, Ethiopic, Georgian, Glagolitic,
* Gothic, Hangul Jamo, Hanunoo, Hiragana, Kanbun, Kaithi, Kannada, Katakana, Kharoshthi, Khmer, Lao, Lepcha, Limbu, * Gothic, Hangul Jamo, Hanunoo, Hiragana, Kanbun, Kaithi, Kannada, Katakana, Kharoshthi, Khmer, Lao, Lepcha, Limbu,
* Lycian, Lydian, Malayalam, Mandaic, Meroitic, Miao, Mongolian, Myanmar, New Tai Lue, Ol Chiki, Old Turkic, Oriya, * Lycian, Lydian, Malayalam, Mandaic, Meroitic, Miao, Mongolian, Myanmar, New Tai Lue, Ol Chiki, Old Turkic, Oriya,
* Osmanya, Pahlavi, Parthian, Phags-Pa, Phoenician, Samaritan, Sharada, Sinhala, Sora Sompeng, Tagalog, Tagbanwa, * Osmanya, Pahlavi, Parthian, Phags-Pa, Phoenician, Samaritan, Sharada, Sinhala, Sora Sompeng, Tagalog, Tagbanwa,
* Takri, Tai Le, Tai Tham, Tamil, Telugu, Thai, Tibetan, Tifinagh, UCAS. * Takri, Tai Le, Tai Tham, Tamil, Telugu, Thai, Tibetan, Tifinagh, UCAS.
* <p/> *
* A kim object can be constructed from an ordinary UTF-16 string, or from a byte array. A kim object can produce a * A kim object can be constructed from an ordinary UTF-16 string, or from a byte array. A kim object can produce a
* UTF-16 string. * UTF-16 string.
* <p/> *
* As with UTF-8, it is possible to detect character boundaries within a byte sequence. UTF-8 is one of the world's * As with UTF-8, it is possible to detect character boundaries within a byte sequence. UTF-8 is one of the world's
* great inventions. While Kim is more efficient, it is not clear that it is worth the expense of transition. * great inventions. While Kim is more efficient, it is not clear that it is worth the expense of transition.
* *

View File

@ -48,8 +48,8 @@ public class XML {
/** /**
* Replace special characters with XML escapes: * Replace special characters with XML escapes:
* <p/> *
* <p/> *
* <pre> * <pre>
* &amp; <small>(ampersand)</small> is replaced by &amp;amp; * &amp; <small>(ampersand)</small> is replaced by &amp;amp;
* &lt; <small>(less than)</small> is replaced by &amp;lt; * &lt; <small>(less than)</small> is replaced by &amp;lt;

View File

@ -160,31 +160,31 @@ public abstract class SubCommand {
public enum CommandCategory { public enum CommandCategory {
/** /**
* Claiming Commands * Claiming Commands
* <p/> *
* Such as: /plot claim * Such as: /plot claim
*/ */
CLAIMING("Claiming"), CLAIMING("Claiming"),
/** /**
* Teleportation Commands * Teleportation Commands
* <p/> *
* Such as: /plot visit * Such as: /plot visit
*/ */
TELEPORT("Teleportation"), TELEPORT("Teleportation"),
/** /**
* Action Commands * Action Commands
* <p/> *
* Such as: /plot clear * Such as: /plot clear
*/ */
ACTIONS("Actions"), ACTIONS("Actions"),
/** /**
* Information Commands * Information Commands
* <p/> *
* Such as: /plot info * Such as: /plot info
*/ */
INFO("Information"), INFO("Information"),
/** /**
* Debug Commands * Debug Commands
* <p/> *
* Such as: /plot debug * Such as: /plot debug
*/ */
DEBUG("Debug"); DEBUG("Debug");

View File

@ -31,7 +31,7 @@ public abstract class ClassicPlotWorld extends SquarePlotWorld {
/** /**
* CONFIG NODE | DEFAULT VALUE | DESCRIPTION | CONFIGURATION TYPE | REQUIRED FOR INITIAL SETUP * CONFIG NODE | DEFAULT VALUE | DESCRIPTION | CONFIGURATION TYPE | REQUIRED FOR INITIAL SETUP
* <p/> *
* Set the last boolean to false if you do not require a specific config node to be set while using the setup * Set the last boolean to false if you do not require a specific config node to be set while using the setup
* command - this may be useful if a config value can be changed at a later date, and has no impact on the actual * command - this may be useful if a config value can be changed at a later date, and has no impact on the actual
* world generation * world generation

View File

@ -25,7 +25,7 @@ import org.bukkit.block.Block;
/** /**
* Wrapper class for blocks, using pure data rather than the object. * Wrapper class for blocks, using pure data rather than the object.
* <p/> *
* Useful for NMS * Useful for NMS
* *
* @author Empire92 * @author Empire92

View File

@ -36,7 +36,7 @@ public class StringComparison {
private String bestMatch; private String bestMatch;
/** /**
* Match Value * Match Value
* <p/> *
* Can be checked for low match (< .25 or something) * Can be checked for low match (< .25 or something)
*/ */
private double match = 0; private double match = 0;