Class ByteSink
java.lang.Object
ca.mcscert.jpipe.compiler.steps.io.sinks.ByteSink
- All Implemented Interfaces:
Sink<byte[]>
Pipeline sink that writes a
byte[] to an OutputStream
supplied at construction time. Used for binary output formats (PNG, JPEG)
produced by an external renderer.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpourInto(byte[] output) Writeoutputto the sink's pre-configured destination.
-
Constructor Details
-
ByteSink
-
-
Method Details
-
pourInto
Description copied from interface:SinkWriteoutputto the sink's pre-configured destination.- Specified by:
pourIntoin interfaceSink<byte[]>- Parameters:
output- the value produced by the preceding transformation chain.- Throws:
IOException- if the destination cannot be written.
-