code: private static InputStream inputFor( File file)
      {
      try
        {
        return
          file == null
          ? null
          : new FileInputStream( file);
        }
      catch( Exception e)
        {
        throw new IllegalArgumentException( "Can't open file=" + file);
        }
      }
docs: Returns an InputStream for the given file.