Class ScriptInfo

    • Constructor Detail

      • ScriptInfo

        public ScriptInfo​(Context context,
                          File file)
        Creates a script metadata object which describes the given script file.
        Parameters:
        context - The SciJava application context to use when populating service inputs.
        file - The script file.
      • ScriptInfo

        public ScriptInfo​(Context context,
                          String path)
        Creates a script metadata object which describes the given script file.
        Parameters:
        context - The SciJava application context to use when populating service inputs.
        path - Path to the script file.
      • ScriptInfo

        public ScriptInfo​(Context context,
                          URL url,
                          String path)
                   throws IOException
        Creates a script metadata object which describes a script at the given URL.
        Parameters:
        context - The SciJava application context to use when populating service inputs.
        url - URL which references the script.
        path - Pseudo-path to the script file. This file does not actually need to exist, but rather provides a name for the script with file extension.
        Throws:
        IOException
      • ScriptInfo

        public ScriptInfo​(Context context,
                          String path,
                          Reader reader)
        Creates a script metadata object which describes a script provided by the given Reader.
        Parameters:
        context - The SciJava application context to use when populating service inputs.
        path - Pseudo-path to the script file. This file does not actually need to exist, but rather provides a name for the script with file extension.
        reader - Reader which provides the script itself (i.e., its contents).