public In(File file){
  if (file == null)   throw new NullPointerException("argument is null");
  try {
    FileInputStream fis=new FileInputStream(file);
    scanner=new Scanner(new BufferedInputStream(fis),CHARSET_NAME);
    scanner.useLocale(LOCALE);
  }
 catch (  IOException ioe) {
    throw new IllegalArgumentException("Could not open " + file);
  }
}

public In ( File file ) { if ( file == null ) throw new NullPointerException ( "argument is null" ) ; try { FileInputStream fis = new FileInputStream ( file ) ; scanner = new Scanner ( new BufferedInputStream ( fis ) , CHARSET_NAME ) ; scanner . useLocale ( LOCALE ) ; } catch ( IOException ioe ) { throw new IllegalArgumentException ( "Could not open " + file ) ; } }
initializes an input stream from a file .
