Package me.lauriichan.laylib.json.io
Class JsonWriter
java.lang.Object
me.lauriichan.laylib.json.io.JsonWriter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanisPretty()setIndent(int indent) setPretty(boolean pretty) setSpaces(boolean spaces) setTabIndent(int indent) byte[]voidvoidvoidtoStream(IJson<?> value, OutputStream stream) voidboolean
-
Field Details
-
TAB_SPACES
public static final int TAB_SPACES- See Also:
-
-
Constructor Details
-
JsonWriter
public JsonWriter()
-
-
Method Details
-
isPretty
public boolean isPretty() -
setPretty
-
usesSpaces
public boolean usesSpaces() -
setSpaces
-
getIndent
public int getIndent() -
setIndent
-
setTabIndent
-
toString
- Throws:
IOException
-
toBytes
- Throws:
IOException
-
toWriter
- Throws:
IOException
-
toStream
- Throws:
IOException
-
toFile
- Throws:
IOException
-
toPath
- Throws:
IOException
-