public static class Writers.PrimitiveValueWriter extends Writers.PrimitiveTypeWriter
Constructor and Description |
---|
PrimitiveValueWriter() |
Modifier and Type | Method and Description |
---|---|
String |
extractString(Object o) |
void |
writePrimitiveForm(Object o,
Writer output,
WriterContext context)
Writes out a basic value type, no quotes.
|
getKey, hasPrimitiveForm, write
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hasPrimitiveForm, write, writePrimitiveForm
public void writePrimitiveForm(Object o, Writer output, WriterContext context) throws IOException
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.Copyright © 2024. All rights reserved.