public interface StreamingOutput extends Flushable, Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
write(String name,
boolean b)
Write a boolean.
|
void |
write(String name,
byte[] data)
Write a byte array to the output.
|
void |
write(String name,
double number)
Write a double.
|
void |
write(String name,
float number)
Write a float.
|
void |
write(String name,
int number)
Write an integer.
|
void |
write(String name,
long number)
Write a long.
|
void |
write(String name,
String value)
Write a string.
|
void |
writeListEnd(String name)
Write the end of a list.
|
void |
writeListStart(String name)
Write the start of a list.
|
void |
writeNull(String name)
Write a null value.
|
void |
writeObjectEnd(String name)
Write the end of an object.
|
void |
writeObjectStart(String name)
Write the start of an object.
|
void writeObjectStart(String name) throws IOException
name - IOExceptionvoid writeObjectEnd(String name) throws IOException
name - IOExceptionvoid writeListStart(String name) throws IOException
name - IOExceptionvoid writeListEnd(String name) throws IOException
name - IOExceptionvoid write(String name, String value) throws IOException
name - value - IOExceptionvoid write(String name, int number) throws IOException
name - number - IOExceptionvoid write(String name, long number) throws IOException
name - number - IOExceptionvoid write(String name, float number) throws IOException
name - score - IOExceptionvoid write(String name, double number) throws IOException
name - score - IOExceptionvoid write(String name, boolean b) throws IOException
name - b - IOExceptionvoid write(String name, byte[] data) throws IOException
name - data - IOExceptionvoid writeNull(String name) throws IOException
name - IOExceptionCopyright © 2017. All rights reserved.