public class ByteArrayWriter extends Object implements JsonWriter.JsonClassWriter
Constructor and Description |
---|
ByteArrayWriter() |
Modifier and Type | Method and Description |
---|---|
boolean |
hasPrimitiveForm(WriterContext context) |
void |
writePrimitiveForm(Object o,
Writer output,
WriterContext context)
This default implementation will call the more basic writePrimitiveForm that does not take arguments.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hasPrimitiveForm, write, write, writePrimitiveForm
public void writePrimitiveForm(Object o, Writer output, WriterContext context) throws IOException
JsonWriter.JsonClassWriter
writePrimitiveForm
in interface JsonWriter.JsonClassWriter
o
- Object to be writtenoutput
- Writer destination to where the actual JSON is written.context
- WriterContext to get access to writeOptions and writing toolsIOException
- if thrown by the writer. Will be caught at a higher level and wrapped in JsonIoException.public boolean hasPrimitiveForm(WriterContext context)
hasPrimitiveForm
in interface JsonWriter.JsonClassWriter
Copyright © 2024. All rights reserved.