public interface OutputSinkFactory
Modifier and Type | Interface and Description |
---|---|
static interface |
OutputSinkFactory.Sink<T>
NB Sink as opposed to a stream, means that implementor has the choice of when to close.
|
static class |
OutputSinkFactory.SinkClass
Defines the kind of object that will arrive on your sink.
All consumers should accept at least STRING. Not all classes are appropriate to all sink types. OutputSinkFactory.Sink instances are constructed, and used in terms of sink classes so as to ensure easy future
expansion of capabilities without breaking the ABI, and without being entirely weakly typed. |
static class |
OutputSinkFactory.SinkType
Defines the kind of sink this is.
|
Modifier and Type | Method and Description |
---|---|
<T> OutputSinkFactory.Sink<T> |
getSink(OutputSinkFactory.SinkType sinkType,
OutputSinkFactory.SinkClass sinkClass)
CFR wishes to sink output - return an implementation of Sink that takes the appropriate
input for the SinkClass being sunk, or null.
|
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.
|
List<OutputSinkFactory.SinkClass> getSupportedSinks(OutputSinkFactory.SinkType sinkType, Collection<OutputSinkFactory.SinkClass> available)
sinkType
- the kind of sink - see OutputSinkFactory.SinkType
enum.available
- the classes of data CFR has available for this sink.<T> OutputSinkFactory.Sink<T> getSink(OutputSinkFactory.SinkType sinkType, OutputSinkFactory.SinkClass sinkClass)
OutputSinkFactory.SinkClass
T
- the type of sinkClass's data. (tut tut!)sinkType
- the kind of sink - see OutputSinkFactory.SinkType
enum.sinkClass
- the class of sink. You select this in getSupportedSinks(SinkType, Collection)
Copyright © 2011-2021. All Rights Reserved.