Package org.sentrysoftware.jawk.util
Class ScriptFileSource
java.lang.Object
org.sentrysoftware.jawk.util.ScriptSource
org.sentrysoftware.jawk.util.ScriptFileSource
Represents one AWK-script file content source.
- Author:
- Danny Daglas
-
Field Summary
Fields inherited from class org.sentrysoftware.jawk.util.ScriptSource
DESCRIPTION_COMMAND_LINE_SCRIPT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGetter for the fieldfilePath
.Returns theInputStream
serving the contents of this source.Obtain the InputStream containing the intermediate file.Methods inherited from class org.sentrysoftware.jawk.util.ScriptSource
getDescription, isIntermediate, toString
-
Constructor Details
-
ScriptFileSource
Constructor for ScriptFileSource.
- Parameters:
filePath
- aString
object
-
-
Method Details
-
getFilePath
Getter for the field
filePath
.- Returns:
- a
String
object
-
getReader
Obtain the InputStream containing the intermediate file. This returns non-null only if returnsfalse
.- Overrides:
getReader
in classScriptSource
- 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
Returns theInputStream
serving the contents of this source. This returns non-null
only if returnstrue
.- Overrides:
getInputStream
in classScriptSource
- Returns:
- a
InputStream
object
-