APISonar


com.google.common.io.Files.newReaderSupplier

> com > google > common > io > Files > newReaderSupplier
com APIs google APIs common APIs io APIs Files APIs newReaderSupplier APIs

Example 1
public static Set<String> loadWhitelistedJsWarnings(File file) {
    return loadWhitelistedJsWarnings(
        Files.newReaderSupplier(file, Charsets.UTF_8));
  }
Example 2
private static void loadDeadCodeMap() {
    DeadCodeMap map = null;
    File file = Options.getProGuardUsageFile();
    if (file != null) {
      try {
        map = ProGuardUsageParser.parse(Files.newReaderSupplier(file, Charset.defaultCharset()));
      } catch (IOException e) {
        throw new AssertionError(e);
      }
    }
    Options.setDeadCodeMap(map);
  }