Interface StreamingOutput
- All Superinterfaces:
AutoCloseable,Closeable,Flushable
- All Known Implementing Classes:
BinaryOutput,JsonOutput
public interface StreamingOutput extends Flushable, Closeable
Adapter for streaming results in different output formats.
- Author:
- andreas
-
Method Summary
Modifier and Type Method Description voidwrite(String name, boolean b)Write a boolean.default voidwrite(String name, byte b)Write a single byte value to the output.voidwrite(String name, byte[] data)Write a byte array to the output.default voidwrite(String name, char c)Write a single char value to the output.voidwrite(String name, double number)Write a double.voidwrite(String name, float number)Write a float.voidwrite(String name, int number)Write an integer.voidwrite(String name, long number)Write a long.voidwrite(String name, String value)Write a string.voidwriteListEnd(String name)Write the end of a list.voidwriteListStart(String name)Write the start of a list.voidwriteNull(String name)Write a null value.voidwriteObjectEnd(String name)Write the end of an object.voidwriteObjectStart(String name)Write the start of an object.
-
Method Details
-
writeObjectStart
Write the start of an object.- Parameters:
name-- Throws:
IOException
-
writeObjectEnd
Write the end of an object.- Parameters:
name-- Throws:
IOException
-
writeListStart
Write the start of a list.- Parameters:
name-- Throws:
IOException
-
writeListEnd
Write the end of a list.- Parameters:
name-- Throws:
IOException
-
write
Write a string.- Parameters:
name-value-- Throws:
IOException
-
write
Write a single byte value to the output.- Parameters:
name-b-- Throws:
IOException
-
write
Write a single char value to the output.- Parameters:
name-c-- Throws:
IOException
-
write
Write an integer.- Parameters:
name-number-- Throws:
IOException
-
write
Write a long.- Parameters:
name-number-- Throws:
IOException
-
write
Write a float.- Parameters:
name-score-- Throws:
IOException
-
write
Write a double.- Parameters:
name-score-- Throws:
IOException
-
write
Write a boolean.- Parameters:
name-b-- Throws:
IOException
-
write
Write a byte array to the output.- Parameters:
name-data-- Throws:
IOException
-
writeNull
Write a null value.- Parameters:
name-- Throws:
IOException
-