Class TcpInput

java.lang.Object
com.github.kokorin.jaffree.ffprobe.TcpInput
All Implemented Interfaces:
Input
Direct Known Subclasses:
ChannelInput, PipeInput

public abstract class TcpInput extends Object implements Input
Base implementation of Input for all TCP-based inputs.
  • Constructor Details

    • TcpInput

      public TcpInput(TcpNegotiator negotiator)
      Creates TcpInput.
      Parameters:
      negotiator - tcp negotiator
    • TcpInput

      public TcpInput(String protocol, TcpNegotiator negotiator)
      Creates TcpInput.
      Parameters:
      protocol - protocol
      negotiator - tcp negotiator
    • TcpInput

      public TcpInput(String protocol, String suffix, TcpNegotiator negotiator)
      Creates TcpInput.
      Parameters:
      protocol - protocol
      suffix - url suffix
      negotiator - tcp negotiator
    • TcpInput

      protected TcpInput(String protocol, String suffix, TcpServer tcpServer)
  • Method Details

    • getUrl

      public final String getUrl()
      Description copied from interface: Input
      Path or URL to be analyzed by ffprobe.
      Specified by:
      getUrl in interface Input
      Returns:
      path or URL
    • helperThread

      public ProcessHelper helperThread()
      Helper ProcessHelper which should be ran in dedicated thread.
      Specified by:
      helperThread in interface Input
      Returns:
      null if no helper thread is needed, otherwise Runnable