public class AutoPrimitiveTarget extends StreamTargetDelegate
Constructor and Description |
---|
AutoPrimitiveTarget(JsonStreamTarget delegate,
boolean convertAttributes) |
Modifier and Type | Method and Description |
---|---|
void |
name(String name)
Write name.
|
void |
value(Object value)
Write value.
|
close, endArray, endObject, flush, startArray, startObject
public AutoPrimitiveTarget(JsonStreamTarget delegate, boolean convertAttributes)
public void name(String name) throws IOException
JsonStreamTarget
name
in interface JsonStreamTarget
name
in class StreamTargetDelegate
IOException
public void value(Object value) throws IOException
JsonStreamTarget
value
in interface JsonStreamTarget
value
in class StreamTargetDelegate
IOException
Copyright © 2005–2020 Apache Software Foundation. All rights reserved.