Class ByteSink

java.lang.Object
ca.mcscert.jpipe.compiler.steps.io.sinks.ByteSink
All Implemented Interfaces:
Sink<byte[]>

public final class ByteSink extends Object implements 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 Details

  • Method Details

    • pourInto

      public void pourInto(byte[] output) throws IOException
      Description copied from interface: Sink
      Write output to the sink's pre-configured destination.
      Specified by:
      pourInto in interface Sink<byte[]>
      Parameters:
      output - the value produced by the preceding transformation chain.
      Throws:
      IOException - if the destination cannot be written.