public class JsonWriter extends Writer
| Constructor and Description |
|---|
JsonWriter(Writer writer,
JsonTypeRegistry registry) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
dec() |
void |
flush() |
void |
inc() |
void |
nl() |
void |
render(Object instance) |
void |
render(Object instance,
Type fullType) |
void |
write(char[] cbuf,
int off,
int len) |
void |
writeLong(long value) |
void |
writeNumber(Number value) |
void |
writeString(String string) |
public JsonWriter(@Nonnull Writer writer, @Nonnull JsonTypeRegistry registry)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class WriterIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class WriterIOExceptionpublic void write(char[] cbuf,
int off,
int len)
throws IOException
write in class WriterIOExceptionpublic void render(@Nullable Object instance, @Nullable Type fullType) throws Exception
Exceptionpublic void inc()
public void dec()
throws IOException
IOExceptionpublic void nl()
throws IOException
IOExceptionCopyright © 2017 etc.to. All rights reserved.