public abstract class BaseClientEngineStreamMapper<T,R>
extends java.lang.Object
implements java.util.function.Function<T,R>, java.io.Closeable
| Modifier and Type | Field and Description |
|---|---|
protected FCClientEngineBridge |
engine |
protected java.lang.String |
serverCommand |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseClientEngineStreamMapper(FCClientEngineBridge engine,
java.lang.String command) |
| Modifier and Type | Method and Description |
|---|---|
R |
apply(T source) |
void |
close() |
protected abstract R |
parseIncomingResult(T sourceItem,
java.lang.String line)
ABSTRACT METHODS BELOW
|
protected abstract java.lang.String |
serializeDataForTransmission(T item) |
protected java.lang.String serverCommand
protected FCClientEngineBridge engine
protected BaseClientEngineStreamMapper(FCClientEngineBridge engine,
java.lang.String command)
public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableprotected abstract R parseIncomingResult(T sourceItem, java.lang.String line)
protected abstract java.lang.String serializeDataForTransmission(T item)