Class BaseClientEngineStreamMapper<T,​R>

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.util.function.Function<T,​R>
    Direct Known Subclasses:
    ClientEngineFileExistsMapper, ClientEngineRemoteSyncMapper

    public abstract class BaseClientEngineStreamMapper<T,​R>
    extends java.lang.Object
    implements java.util.function.Function<T,​R>, java.io.Closeable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected unlimited.core.transfers.io.FCClientEngineBridge engine  
      protected java.lang.String serverCommand  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected BaseClientEngineStreamMapper​(unlimited.core.transfers.io.FCClientEngineBridge engine, java.lang.String command)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Field Detail

      • serverCommand

        protected java.lang.String serverCommand
      • engine

        protected unlimited.core.transfers.io.FCClientEngineBridge engine
    • Constructor Detail

      • BaseClientEngineStreamMapper

        protected BaseClientEngineStreamMapper​(unlimited.core.transfers.io.FCClientEngineBridge engine,
                                               java.lang.String command)
    • Method Detail

      • apply

        public R apply​(T source)
        Specified by:
        apply in interface java.util.function.Function<T,​R>
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
      • parseIncomingResult

        protected abstract R parseIncomingResult​(T sourceItem,
                                                 java.lang.String line)
        ABSTRACT METHODS BELOW
      • serializeDataForTransmission

        protected abstract java.lang.String serializeDataForTransmission​(T item)