Class UrlInput

java.lang.Object
com.github.kokorin.jaffree.ffprobe.UrlInput
All Implemented Interfaces:
Input

public class UrlInput extends Object implements Input
Input implementation which allows String to specify input location.
  • Constructor Details

    • UrlInput

      protected UrlInput(String input)
      Creates UrlInput.
      Parameters:
      input - input location
  • Method Details

    • getUrl

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

      public final 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
    • fromUrl

      public static UrlInput fromUrl(String input)
      Creates UrlInput.
      Parameters:
      input - input location: path on filesystem, URL, etc
      Returns:
      UrlInput
    • fromPath

      public static UrlInput fromPath(Path path)
      Creates UrlInput.
      Parameters:
      path - input location: path on filesystem
      Returns:
      UrlInput