Interface OutputConsumer
-
public interface OutputConsumerOutput consumer responsible for transformingJsonNodeto 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.voidwrite(com.fasterxml.jackson.databind.JsonNode node, java.io.OutputStream output)Writes result of transformation ofJsonNodetoOutputStream.
-
-
-
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.IOExceptionWrites result of transformation ofJsonNodetoOutputStream.- Parameters:
node- node to be transformedoutput- output where transformed node should be written to- Throws:
java.io.IOException- when transforming node to output
-
-