public class AutoArrayTarget extends Object implements JsonStreamTarget
JsonXMLStreamWriter.writeStartArray(String)
and
JsonXMLStreamWriter.writeEndArray()
methods
or by producing <?xml-muliple ...?>
processing instructions.Constructor and Description |
---|
AutoArrayTarget(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 AutoArrayTarget(JsonStreamTarget delegate)
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
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public void flush() throws IOException
flush
in interface Flushable
IOException
Copyright © 2005–2017 Apache Software Foundation. All rights reserved.