Interface OutputConsumer
public interface OutputConsumer
Output consumer responsible for transforming
JsonNode to desired output format.-
Method Summary
Modifier and TypeMethodDescriptionGets all file formats that are supported with this consumer.voidwrite(com.fasterxml.jackson.databind.JsonNode node, OutputStream output) Writes result of transformation ofJsonNodetoOutputStream.
-
Method Details
-
getFileFormats
Gets all file formats that are supported with this consumer.- Returns:
- set of file formats
-
write
Writes result of transformation ofJsonNodetoOutputStream.- Parameters:
node- node to be transformedoutput- output where transformed node should be written to- Throws:
IOException- when transforming node to output
-