Interface OutputConsumer
-
public interface OutputConsumer
Output consumer responsible for transformingJsonNode
to desired output format.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Set<java.lang.String>
getFileFormats()
Gets all file formats that are supported with this consumer.void
write(com.fasterxml.jackson.databind.JsonNode node, java.io.OutputStream output)
Writes result of transformation ofJsonNode
toOutputStream
.
-
-
-
Method Detail
-
getFileFormats
java.util.Set<java.lang.String> getFileFormats()
Gets all file formats that are supported with this consumer.- Returns:
- set of file formats
-
write
void write(com.fasterxml.jackson.databind.JsonNode node, java.io.OutputStream output) throws java.io.IOException
Writes result of transformation ofJsonNode
toOutputStream
.- Parameters:
node
- node to be transformedoutput
- output where transformed node should be written to- Throws:
java.io.IOException
- when transforming node to output
-
-