Conversion principle flow

   /**
    * Creates a new <tt>FileReader</tt>, given the name of the
    * file to read from.
    *
    * @param fileName the name of the file to read from
    * @exception  FileNotFoundException  if the named file does not exist,
    *                   is a directory rather than a regular file,
    *                   or for some other reason cannot be opened for
    *                   reading.
    */
    public FileReader(String fileName) throws FileNotFoundException {
        super(new FileInputStream(fileName));
    }

 

Released 1900 original articles · won praise 46 · views 110 000 +

Guess you like

Origin blog.csdn.net/Leon_Jinhai_Sun/article/details/104046286