Class FileReader

    • Field Detail

      • fileOrURL

        public FileParameter fileOrURL
        The file name or URL from which to read. This is a string with any form accepted by FileParameter.
        See Also:
        FileParameter
      • fileOrURLPort

        public TypedIOPort fileOrURLPort
        An input port for optionally providing a file name. This has type string.
      • newline

        public Parameter newline
        The end of line character(s). The default value is the value of the line.separator property
    • Method Detail

      • _handleFileData

        protected void _handleFileData​(java.lang.String fileContents)
                                throws IllegalActionException
        Send the specified string to the output.
        Parameters:
        fileContents - The contents of the file or URL that was read.
        Throws:
        IllegalActionException - If sending the data fails.