Interface OutputSinkFactory


  • public interface OutputSinkFactory
    • Method Detail

      • getSupportedSinks

        List<OutputSinkFactory.SinkClass> getSupportedSinks​(OutputSinkFactory.SinkType sinkType,
                                                            Collection<OutputSinkFactory.SinkClass> available)
        Return the classes of sink that this sink factory can provide for the given sink type. Note. You will always receive SinkClass.STRING, and should always support it. Returning null or an empty list is implicitly equal to returning [SinkClass.STRING].
        Parameters:
        sinkType - the kind of sink - see OutputSinkFactory.SinkType enum.
        available - the classes of data CFR has available for this sink.
        Returns:
        the subset (in preferential order) of available that you are equipped to handle. You will then be receive a call to getSink with one of these (probably the first one!).