Class ScriptFileSource

java.lang.Object
org.sentrysoftware.jawk.util.ScriptSource
org.sentrysoftware.jawk.util.ScriptFileSource

public class ScriptFileSource extends ScriptSource
Represents one AWK-script file content source.
Author:
Danny Daglas
  • Constructor Details

    • ScriptFileSource

      public ScriptFileSource(String filePath)

      Constructor for ScriptFileSource.

      Parameters:
      filePath - a String object
  • Method Details

    • getFilePath

      public String getFilePath()

      Getter for the field filePath.

      Returns:
      a String object
    • getReader

      public Reader getReader()
      Obtain the InputStream containing the intermediate file. This returns non-null only if returns false.
      Overrides:
      getReader in class ScriptSource
      Returns:
      The reader which contains the intermediate file, null if either the -f argument is not used, or the argument does not refer to an intermediate file.
    • getInputStream

      public InputStream getInputStream()
      Returns the InputStream serving the contents of this source. This returns non-null only if returns true.
      Overrides:
      getInputStream in class ScriptSource
      Returns:
      a InputStream object