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 Flushable
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public void name(String name) throws IOException
JsonStreamTarget
name
in interface JsonStreamTarget
IOException
public void value(Object value) throws IOException
JsonStreamTarget
value
in interface JsonStreamTarget
IOException
public void startObject() throws IOException
JsonStreamTarget
startObject
in interface JsonStreamTarget
IOException
public void endObject() throws IOException
JsonStreamTarget
endObject
in interface JsonStreamTarget
IOException
public void startArray() throws IOException
JsonStreamTarget
startArray
in interface JsonStreamTarget
IOException
public void endArray() throws IOException
JsonStreamTarget
endArray
in interface JsonStreamTarget
IOException
Copyright © 2005–2024 Apache Software Foundation. All rights reserved.