A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
_
A
B
C
- call(Closure) - Method in JsonBuilder
- A closure passed to a JSON builder will create a root JSON object
- call(Closure) - Method in StreamingJsonBuilder
- A closure passed to a JSON builder will create a root JSON object
- cloneDelegateAndGetContent(Closure) - Method in JsonDelegate
- Factory method for creating
JsonDelegate
s from closures.
- cloneDelegateAndGetContent(Writer, Closure, boolean) - Method in StreamingJsonDelegate
D
- DateFormatThreadLocal - Class in groovy.json
- Custom thread local holding a
SimpleDateFormat
,
so that the JsonOutput
class used by JsonBuilder
can be thread-safe when outputting dates and calendars.
E
- escapeJava(Writer, String) - Method in StringEscapeUtils
- Escapes the characters in a
String
using Java String rules to
a Writer
.
- escapeJavaScript(Writer, String) - Method in StringEscapeUtils
- Escapes the characters in a
String
using JavaScript String rules
to a Writer
.
F
G
- getEndColumn() - Method in JsonToken
- getEndLine() - Method in JsonToken
- getLabel() - Method in JsonTokenType
- getReader() - Method in JsonLexer
- Underlying reader from which to read the JSON tokens.
- getStartColumn() - Method in JsonToken
- getStartLine() - Method in JsonToken
- getText() - Method in JsonToken
- getType() - Method in JsonToken
- getValidator() - Method in JsonTokenType
- getValue() - Method in JsonToken
- Return the value represented by this token (ie. a number, a string, a boolean or null).
H
- hasNext() - Method in JsonLexer
- Iterator method to know if another token follows,
or if we've reached the end of the stream.
I
- initialValue() - Method in DateFormatThreadLocal
- invokeMethod(String, Object) - Method in JsonBuilder
- A method call on the JSON builder instance will create a root object with only one key
whose name is the name of the method being called.
- invokeMethod(String, Object) - Method in JsonDelegate
- Intercepts calls for setting a key and value for a JSON object
- invokeMethod(String, Object) - Method in StreamingJsonBuilder
- A method call on the JSON builder instance will create a root object with only one key
whose name is the name of the method being called.
- invokeMethod(String, Object) - Method in StreamingJsonDelegate
J
- JsonBuilder - Class in groovy.json
- A builder for creating JSON payloads.
- JsonBuilder(def) - Constructor in JsonBuilder
- Instanciates a JSON builder, possibly with some existing data structure.
- JsonDelegate - Class in groovy.json
- Utility class used as delegate of closures representing JSON objects.
- JsonException - Class in groovy.json
JsonException
is the exception thrown by the JSON builder and slurper classes,
whenever a problem occurs when creating or parsing JSON data structures.
- JsonException(Throwable) - Constructor in JsonException
- JsonLexer - Class in groovy.json
- The lexer reads JSON tokens in a streaming fashion from the underlying reader.
- JsonLexer(Reader) - Constructor in JsonLexer
- Instanciates a lexer with a reader from which to read JSON tokens.
- JsonOutput - Class in groovy.json
- Class responsible for the actual String serialization of the possible values of a JSON structure.
- JsonSlurper - Class in groovy.json
- JSON slurper which parses text or reader content into a data structure of lists and maps.
- JsonToken - Class in groovy.json
- A JSON token, with a type, line / column information, and the text of that token.
- JsonTokenType - Enum in groovy.json
- Enum listing all the possible JSON tokens that should be recognized by the lexer.
K
L
M
- matching(String) - Method in JsonTokenType
- Tells if an input string matches a token.
N
- next() - Method in JsonLexer
- Iterator method to get the next token of the stream.
- nextToken() - Method in JsonLexer
- @return the next token from the stream
O
P
- parse(Reader) - Method in JsonSlurper
- Parse a JSON data structure from content from a reader
- parseText(String) - Method in JsonSlurper
- Parse a text representation of a JSON data structure
- prettyPrint(String) - Method in JsonOutput
- Pretty print a JSON payload
Q
R
- remove() - Method in JsonLexer
- Method not implemented.
S
- setEndColumn(long) - Method in JsonToken
- setEndLine(long) - Method in JsonToken
- setStartColumn(long) - Method in JsonToken
- setStartLine(long) - Method in JsonToken
- setText(String) - Method in JsonToken
- setType(JsonTokenType) - Method in JsonToken
- skipWhitespace() - Method in JsonLexer
- Skips all the whitespace characters and moves the cursor to the next non-space character.
- startingWith(char) - Method in JsonTokenType
- Find which JSON value might be starting with a given character
- StreamingJsonBuilder - Class in groovy.json
- A builder for creating JSON payloads.
- StreamingJsonBuilder(Writer, def) - Constructor in StreamingJsonBuilder
- Instantiates a JSON builder, possibly with some existing data structure.
- StreamingJsonDelegate - Class in groovy.json
- StreamingJsonDelegate(Writer, boolean) - Constructor in StreamingJsonDelegate
- StringEscapeUtils - Class in groovy.json
- Escapes and unescapes
String
s for
Java, Java Script, HTML, XML, and SQL.
- StringEscapeUtils() - Constructor in StringEscapeUtils
T
- toJson(Map) - Method in JsonOutput
- @return a JSON object representation for a map
- toPrettyString() - Method in JsonBuilder
- Pretty-prints and formats the JSON payload.
- toString() - Method in JsonBuilder
- Serializes the internal data structure built with the builder to a conformant JSON payload string
- toString() - Method in JsonToken
U
- unescape(String) - Method in JsonLexer
- Replace unicode escape and other control characters with real characters
- unescapeJava(Writer, String) - Method in StringEscapeUtils
- unescapeJavaScript(Writer, String) - Method in StringEscapeUtils
V
W
- writeTo(Writer) - Method in JsonBuilder
- The JSON builder implements the
Writable
interface,
so that you can have the builder serialize itself the JSON payload to a writer.
X
Y
Z
_
Copyright © 2003-2013 The Codehaus. All rights reserved.