public enum JsonSerializer extends Enum<JsonSerializer>
| Modifier and Type | Method and Description |
|---|---|
static JsonSerializer |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JsonSerializer[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static void |
write(Json.JValue value,
OutputStream stream) |
static void |
write(Json.JValue value,
Writer writer) |
static void |
write(Json.JValue value,
Writer writer,
PrettyPrinter printer) |
static String |
writeToString(Json.JValue value) |
static String |
writeToString(Json.JValue value,
PrettyPrinter pretty) |
public static JsonSerializer[] values()
for (JsonSerializer c : JsonSerializer.values()) System.out.println(c);
public static JsonSerializer valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static void write(Json.JValue value, OutputStream stream)
public static String writeToString(Json.JValue value, PrettyPrinter pretty)
public static String writeToString(Json.JValue value)
public static void write(Json.JValue value, Writer writer)
public static void write(Json.JValue value, Writer writer, PrettyPrinter printer)
Copyright © 2015–2017. All rights reserved.