Class VideoTool

    • Constructor Detail

      • VideoTool

        public VideoTool​(String name,
                         String commandLineName)
    • Method Detail

      • getName

        public String getName()
      • getCommandLineName

        public String getCommandLineName()
      • cleanupInputs

        public void cleanupInputs​(Map<String,​String> parameters)
        Removes any temporary input files that were used for command execution.
      • buildResult

        public BlobHolder buildResult​(String mimeType,
                                      Map<String,​String> parameters)
        Returns a BlobHolder containing the result of the command.
        Parameters:
        mimeType - the MIME type
        parameters - the parameters
        Returns:
        the blob holder
      • getTemporaryBlob

        public static Blob getTemporaryBlob​(String path,
                                            String mimeType)
        Gets a temporary blob for the given temporary path.

        The temporary blob is backed by a temporary file in a new location. The old file is removed.

        Parameters:
        path - the path to a temporary file
        mimeType - the blob MIME type
        Returns:
        a temporary Blob