Package org.tomlj
Class JsonSerializer
java.lang.Object
org.tomlj.JsonSerializer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
append
(Appendable appendable, int indent, String line) private static void
appendLine
(Appendable appendable, String line) private static void
appendTomlValue
(Object value, Appendable appendable, Set<JsonOptions> options, int indent) private static void
appendTomlValueLiteral
(TomlType tomlType, Object value, Appendable appendable, Set<JsonOptions> options) private static StringBuilder
private static void
indentLine
(Appendable appendable, int indent) (package private) static void
toJson
(TomlArray array, Appendable appendable, Set<JsonOptions> options) private static void
toJson
(TomlArray array, Appendable appendable, Set<JsonOptions> options, int indent) (package private) static void
toJson
(TomlTable table, Appendable appendable, Set<JsonOptions> options) private static void
toJson
(TomlTable table, Appendable appendable, Set<JsonOptions> options, int indent) private static String
-
Constructor Details
-
JsonSerializer
private JsonSerializer()
-
-
Method Details
-
toJson
static void toJson(TomlTable table, Appendable appendable, Set<JsonOptions> options) throws IOException - Throws:
IOException
-
toJson
private static void toJson(TomlTable table, Appendable appendable, Set<JsonOptions> options, int indent) throws IOException - Throws:
IOException
-
toJson
static void toJson(TomlArray array, Appendable appendable, Set<JsonOptions> options) throws IOException - Throws:
IOException
-
toJson
private static void toJson(TomlArray array, Appendable appendable, Set<JsonOptions> options, int indent) throws IOException - Throws:
IOException
-
appendTomlValue
private static void appendTomlValue(Object value, Appendable appendable, Set<JsonOptions> options, int indent) throws IOException - Throws:
IOException
-
typeName
-
appendTomlValueLiteral
private static void appendTomlValueLiteral(TomlType tomlType, Object value, Appendable appendable, Set<JsonOptions> options) throws IOException - Throws:
IOException
-
append
- Throws:
IOException
-
appendLine
- Throws:
IOException
-
indentLine
- Throws:
IOException
-
escape
-