Class StringSink

java.lang.Object
ca.mcscert.jpipe.compiler.steps.io.sinks.StringSink
All Implemented Interfaces:
Sink<String>

public final class StringSink extends Object implements Sink<String>
Pipeline sink that writes a String to an OutputStream supplied at construction time. The caller decides whether that stream is a file or standard output — this class has no knowledge of either.
  • Constructor Details

  • Method Details

    • pourInto

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