Class JsonSerializer
java.lang.Object
org.tomlj.JsonSerializer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidappend(Appendable appendable, int indent, String line) private static voidappendLine(Appendable appendable, String line) private static voidappendTomlValue(Object value, Appendable appendable, Set<JsonOptions> options, int indent) private static voidappendTomlValueLiteral(TomlType tomlType, Object value, Appendable appendable, Set<JsonOptions> options) private static StringBuilderprivate static voidindentLine(Appendable appendable, int indent) (package private) static voidtoJson(TomlArray array, Appendable appendable, Set<JsonOptions> options) private static voidtoJson(TomlArray array, Appendable appendable, Set<JsonOptions> options, int indent) (package private) static voidtoJson(TomlTable table, Appendable appendable, Set<JsonOptions> options) private static voidtoJson(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
-