public class StreamTargetDelegate extends Object implements JsonStreamTarget
| Constructor and Description |
|---|
StreamTargetDelegate(JsonStreamTarget delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
endArray()
End array.
|
void |
endObject()
End object.
|
void |
flush() |
void |
name(String name)
Write name.
|
void |
startArray()
Start array.
|
void |
startObject()
Start object
|
void |
value(Object value)
Write value.
|
public StreamTargetDelegate(JsonStreamTarget delegate)
public void flush()
throws IOException
flush in interface FlushableIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void name(String name) throws IOException
JsonStreamTargetname in interface JsonStreamTargetIOExceptionpublic void value(Object value) throws IOException
JsonStreamTargetvalue in interface JsonStreamTargetIOExceptionpublic void startObject()
throws IOException
JsonStreamTargetstartObject in interface JsonStreamTargetIOExceptionpublic void endObject()
throws IOException
JsonStreamTargetendObject in interface JsonStreamTargetIOExceptionpublic void startArray()
throws IOException
JsonStreamTargetstartArray in interface JsonStreamTargetIOExceptionpublic void endArray()
throws IOException
JsonStreamTargetendArray in interface JsonStreamTargetIOExceptionCopyright © 2005–2019 Apache Software Foundation. All rights reserved.