java.io.Flushable
public class ContentsJsonWriter extends JsonWriter
Created: 2008. 06. 12 PM 8:20:54
Constructor | Description |
---|---|
ContentsJsonWriter(java.io.Writer writer) |
Instantiates a new ContentsJsonWriter.
|
ContentsJsonWriter(java.io.Writer writer,
boolean prettyPrint) |
Instantiates a new ContentsJsonWriter.
|
ContentsJsonWriter(java.io.Writer writer,
java.lang.String indentString) |
Instantiates a new ContentsJsonWriter.
|
Modifier and Type | Method | Description |
---|---|---|
ContentsJsonWriter |
write(java.lang.Object object) |
Write an object to a character stream.
|
close, closeCurlyBracket, closeSquareBracket, flush, indent, nextLine, openCurlyBracket, openSquareBracket, stringify, stringify, stringify, writeComma, writeName, writeNull, writeValue, writeValue, writeValue
public ContentsJsonWriter(java.io.Writer writer)
writer
- a Writer
object that can send character textpublic ContentsJsonWriter(java.io.Writer writer, boolean prettyPrint)
writer
- a Writer
object that can send character textprettyPrint
- enables or disables pretty-printingpublic ContentsJsonWriter(java.io.Writer writer, java.lang.String indentString)
writer
- a Writer
object that can send character textindentString
- the string that should be used for indentation when pretty-printing is enabledpublic ContentsJsonWriter write(java.lang.Object object) throws java.io.IOException, java.lang.reflect.InvocationTargetException
JsonWriter
write
in class JsonWriter
object
- the object to write to a character-output stream.java.io.IOException
- an I/O error occurs.java.lang.reflect.InvocationTargetException
- the invocation target exceptionCopyright © 2008–2018 The Aspectran Project. All rights reserved.