ZoneInfoDB$TzData
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using libcore.util.ZoneInfoDB$TzData (Showing top 20 results out of 315)

origin: robovm/robovm

zoneName = ZoneInfoDB.getInstance().getDefaultID();
origin: robovm/robovm

/**
 * Returns an array containing the time zone ids in use in the country corresponding to
 * the given locale. This is not necessary for Java API, but is used by telephony as a
 * fallback. We retrieve these strings from zone.tab rather than icu4c because the latter
 * supplies them in alphabetical order where zone.tab has them in a kind of "importance"
 * order (as defined in the zone.tab header).
 */
public static String[] forLocale(Locale locale) {
  String countryCode = locale.getCountry();
  ArrayList<String> ids = new ArrayList<String>();
  for (String line : ZoneInfoDB.getInstance().getZoneTab().split("\n")) {
    if (line.startsWith(countryCode)) {
      int olsonIdStart = line.indexOf('\t', 4) + 1;
      int olsonIdEnd = line.indexOf('\t', olsonIdStart);
      if (olsonIdEnd == -1) {
        olsonIdEnd = line.length(); // Not all zone.tab lines have a comment.
      }
      ids.add(line.substring(olsonIdStart, olsonIdEnd));
    }
  }
  return ids.toArray(new String[ids.size()]);
}
origin: robovm/robovm

  zone = ZoneInfoDB.getInstance().makeTimeZone(id);
} catch (IOException ignored) {
origin: robovm/robovm

/**
 * Returns the system's installed time zone IDs. Any of these IDs can be
 * passed to {@link #getTimeZone} to lookup the corresponding time zone
 * instance.
 */
public static synchronized String[] getAvailableIDs() {
  return ZoneInfoDB.getInstance().getAvailableIDs();
}
origin: com.gluonhq/robovm-rt

/**
 * Returns the system's installed time zone IDs. Any of these IDs can be
 * passed to {@link #getTimeZone} to lookup the corresponding time zone
 * instance.
 */
public static synchronized String[] getAvailableIDs() {
  return ZoneInfoDB.getInstance().getAvailableIDs();
}
origin: com.gluonhq/robovm-rt

/**
 * Returns the IDs of the time zones whose offset from UTC is {@code
 * offsetMillis}. Any of these IDs can be passed to {@link #getTimeZone} to
 * lookup the corresponding time zone instance.
 *
 * @return a possibly-empty array.
 */
public static synchronized String[] getAvailableIDs(int offsetMillis) {
  return ZoneInfoDB.getInstance().getAvailableIDs(offsetMillis);
}
origin: FlexoVM/flexovm

/**
 * Returns the IDs of the time zones whose offset from UTC is {@code
 * offsetMillis}. Any of these IDs can be passed to {@link #getTimeZone} to
 * lookup the corresponding time zone instance.
 *
 * @return a possibly-empty array.
 */
public static synchronized String[] getAvailableIDs(int offsetMillis) {
  return ZoneInfoDB.getInstance().getAvailableIDs(offsetMillis);
}
origin: com.bugvm/bugvm-rt

/**
 * Returns the system's installed time zone IDs. Any of these IDs can be
 * passed to {@link #getTimeZone} to lookup the corresponding time zone
 * instance.
 */
public static synchronized String[] getAvailableIDs() {
  return ZoneInfoDB.getInstance().getAvailableIDs();
}
origin: MobiVM/robovm

/**
 * Returns an array containing the time zone ids in use in the country corresponding to
 * the given locale. This is not necessary for Java API, but is used by telephony as a
 * fallback. We retrieve these strings from zone.tab rather than icu4c because the latter
 * supplies them in alphabetical order where zone.tab has them in a kind of "importance"
 * order (as defined in the zone.tab header).
 */
public static String[] forLocale(Locale locale) {
  String countryCode = locale.getCountry();
  ArrayList<String> ids = new ArrayList<String>();
  for (String line : ZoneInfoDB.getInstance().getZoneTab().split("\n")) {
    if (line.startsWith(countryCode)) {
      int olsonIdStart = line.indexOf('\t', 4) + 1;
      int olsonIdEnd = line.indexOf('\t', olsonIdStart);
      if (olsonIdEnd == -1) {
        olsonIdEnd = line.length(); // Not all zone.tab lines have a comment.
      }
      ids.add(line.substring(olsonIdStart, olsonIdEnd));
    }
  }
  return ids.toArray(new String[ids.size()]);
}
origin: com.bugvm/bugvm-rt

/**
 * Returns an array containing the time zone ids in use in the country corresponding to
 * the given locale. This is not necessary for Java API, but is used by telephony as a
 * fallback. We retrieve these strings from zone.tab rather than icu4c because the latter
 * supplies them in alphabetical order where zone.tab has them in a kind of "importance"
 * order (as defined in the zone.tab header).
 */
public static String[] forLocale(Locale locale) {
  String countryCode = locale.getCountry();
  ArrayList<String> ids = new ArrayList<String>();
  for (String line : ZoneInfoDB.getInstance().getZoneTab().split("\n")) {
    if (line.startsWith(countryCode)) {
      int olsonIdStart = line.indexOf('\t', 4) + 1;
      int olsonIdEnd = line.indexOf('\t', olsonIdStart);
      if (olsonIdEnd == -1) {
        olsonIdEnd = line.length(); // Not all zone.tab lines have a comment.
      }
      ids.add(line.substring(olsonIdStart, olsonIdEnd));
    }
  }
  return ids.toArray(new String[ids.size()]);
}
origin: com.gluonhq/robovm-rt

/**
 * Returns an array containing the time zone ids in use in the country corresponding to
 * the given locale. This is not necessary for Java API, but is used by telephony as a
 * fallback. We retrieve these strings from zone.tab rather than icu4c because the latter
 * supplies them in alphabetical order where zone.tab has them in a kind of "importance"
 * order (as defined in the zone.tab header).
 */
public static String[] forLocale(Locale locale) {
  String countryCode = locale.getCountry();
  ArrayList<String> ids = new ArrayList<String>();
  for (String line : ZoneInfoDB.getInstance().getZoneTab().split("\n")) {
    if (line.startsWith(countryCode)) {
      int olsonIdStart = line.indexOf('\t', 4) + 1;
      int olsonIdEnd = line.indexOf('\t', olsonIdStart);
      if (olsonIdEnd == -1) {
        olsonIdEnd = line.length(); // Not all zone.tab lines have a comment.
      }
      ids.add(line.substring(olsonIdStart, olsonIdEnd));
    }
  }
  return ids.toArray(new String[ids.size()]);
}
origin: com.mobidevelop.robovm/robovm-rt

/**
 * Returns an array containing the time zone ids in use in the country corresponding to
 * the given locale. This is not necessary for Java API, but is used by telephony as a
 * fallback. We retrieve these strings from zone.tab rather than icu4c because the latter
 * supplies them in alphabetical order where zone.tab has them in a kind of "importance"
 * order (as defined in the zone.tab header).
 */
public static String[] forLocale(Locale locale) {
  String countryCode = locale.getCountry();
  ArrayList<String> ids = new ArrayList<String>();
  for (String line : ZoneInfoDB.getInstance().getZoneTab().split("\n")) {
    if (line.startsWith(countryCode)) {
      int olsonIdStart = line.indexOf('\t', 4) + 1;
      int olsonIdEnd = line.indexOf('\t', olsonIdStart);
      if (olsonIdEnd == -1) {
        olsonIdEnd = line.length(); // Not all zone.tab lines have a comment.
      }
      ids.add(line.substring(olsonIdStart, olsonIdEnd));
    }
  }
  return ids.toArray(new String[ids.size()]);
}
origin: FlexoVM/flexovm

/**
 * Returns an array containing the time zone ids in use in the country corresponding to
 * the given locale. This is not necessary for Java API, but is used by telephony as a
 * fallback. We retrieve these strings from zone.tab rather than icu4c because the latter
 * supplies them in alphabetical order where zone.tab has them in a kind of "importance"
 * order (as defined in the zone.tab header).
 */
public static String[] forLocale(Locale locale) {
  String countryCode = locale.getCountry();
  ArrayList<String> ids = new ArrayList<String>();
  for (String line : ZoneInfoDB.getInstance().getZoneTab().split("\n")) {
    if (line.startsWith(countryCode)) {
      int olsonIdStart = line.indexOf('\t', 4) + 1;
      int olsonIdEnd = line.indexOf('\t', olsonIdStart);
      if (olsonIdEnd == -1) {
        olsonIdEnd = line.length(); // Not all zone.tab lines have a comment.
      }
      ids.add(line.substring(olsonIdStart, olsonIdEnd));
    }
  }
  return ids.toArray(new String[ids.size()]);
}
origin: com.mobidevelop.robovm/robovm-rt

/**
 * Returns the IDs of the time zones whose offset from UTC is {@code
 * offsetMillis}. Any of these IDs can be passed to {@link #getTimeZone} to
 * lookup the corresponding time zone instance.
 *
 * @return a possibly-empty array.
 */
public static synchronized String[] getAvailableIDs(int offsetMillis) {
  return ZoneInfoDB.getInstance().getAvailableIDs(offsetMillis);
}
origin: MobiVM/robovm

zoneName = ZoneInfoDB.getInstance().getDefaultID();
origin: com.mobidevelop.robovm/robovm-rt

/**
 * Returns the system's installed time zone IDs. Any of these IDs can be
 * passed to {@link #getTimeZone} to lookup the corresponding time zone
 * instance.
 */
public static synchronized String[] getAvailableIDs() {
  return ZoneInfoDB.getInstance().getAvailableIDs();
}
origin: ibinti/bugvm

zoneName = ZoneInfoDB.getInstance().getDefaultID();
origin: ibinti/bugvm

/**
 * Returns the system's installed time zone IDs. Any of these IDs can be
 * passed to {@link #getTimeZone} to lookup the corresponding time zone
 * instance.
 */
public static synchronized String[] getAvailableIDs() {
  return ZoneInfoDB.getInstance().getAvailableIDs();
}
origin: FlexoVM/flexovm

zoneName = ZoneInfoDB.getInstance().getDefaultID();
origin: FlexoVM/flexovm

/**
 * Returns the system's installed time zone IDs. Any of these IDs can be
 * passed to {@link #getTimeZone} to lookup the corresponding time zone
 * instance.
 */
public static synchronized String[] getAvailableIDs() {
  return ZoneInfoDB.getInstance().getAvailableIDs();
}
libcore.utilZoneInfoDB$TzData

Most used methods

  • getAvailableIDs
  • getDefaultID
  • getZoneTab
  • makeTimeZone

Popular in Java

  • Making http post requests using okhttp
  • addToBackStack (FragmentTransaction)
  • setContentView (Activity)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Permission (java.security)
    Legacy security code; do not use.
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Reference (javax.naming)

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)