public static String readTzlookup() {
    """
	Reads tzlookup.xml from the files bundled inside android-all JARs. We need to read the file
	instead of passing in the path because the real implementation uses {@link java.nio.file.Paths}
	which doesn't support reading from JARs.
    """
    StringBuilder stringBuilder = new StringBuilder();
    InputStream is = null;
    try {
      try {
        is = ShadowTimeZoneFinder.class.getResourceAsStream(TZLOOKUP_PATH);
        BufferedReader reader = new BufferedReader(new InputStreamReader(is, UTF_8));
        for (String line; (line = reader.readLine()) != null; ) {
          stringBuilder.append(line);
        }
      } finally {
        if (is != null) {
          is.close();
        }
      }
    } catch (IOException e) {
      // ignore
    }

    return stringBuilder.toString();
  }
public static String readTzlookup() {
    StringBuilder stringBuilder = new StringBuilder();
    InputStream is = null;
    try {
      try {
        is = ShadowTimeZoneFinder.class.getResourceAsStream(TZLOOKUP_PATH);
        BufferedReader reader = new BufferedReader(new InputStreamReader(is, UTF_8));
        for (String line; (line = reader.readLine()) != null; ) {
          stringBuilder.append(line);
        }
      } finally {
        if (is != null) {
          is.close();
        }
      }
    } catch (IOException e) {
      // ignore
    }

    return stringBuilder.toString();
  }
public static String readTzlookup ( ) { StringBuilder stringBuilder = new StringBuilder ( ) ; InputStream is = null ; try { try { is = ShadowTimeZoneFinder . class . getResourceAsStream ( TZLOOKUP_PATH ) ; BufferedReader reader = new BufferedReader ( new InputStreamReader ( is , UTF_8 ) ) ; for ( String line ; ( line = reader . readLine ( ) ) != null ; ) { stringBuilder . append ( line ) ; } } finally { if ( is != null ) { is . close ( ) ; } } } catch ( IOException e ) { // ignore } return stringBuilder . toString ( ) ; }
Reads tzlookup.xml from the files bundled inside android-all JARs. We need to read the file
instead of passing in the path because the real implementation uses {@link java.nio.file.Paths}
which doesn't support reading from JARs.
Reads tzlookup . xml from the files bundled inside android - all JARs . We need to read the file instead of passing in the path because the real implementation uses {