Interface Sink
-
- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Implementing Classes:
JacksonJsonNodeSink
,JacksonStreamSink
@ConsumerType public interface Sink extends Closeable
Sinks represent the end of a pipeline and consumes the data flow.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
hasOutput()
void
write(JsonElement jsonElement)
Takes an JSON element and writes it some where in any format.
-
-
-
Method Detail
-
write
void write(JsonElement jsonElement) throws IOException
Takes an JSON element and writes it some where in any format.- Parameters:
jsonElement
- JSON element- Throws:
IOException
- Writing error
-
hasOutput
boolean hasOutput()
- Returns:
- True if any output was written
-
-