gpt4 book ai didi

org.joda.time.tz.ZoneInfoProvider.loadZoneInfoMap()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-14 22:34:49 27 4
gpt4 key购买 nike

本文整理了Java中org.joda.time.tz.ZoneInfoProvider.loadZoneInfoMap()方法的一些代码示例,展示了ZoneInfoProvider.loadZoneInfoMap()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZoneInfoProvider.loadZoneInfoMap()方法的具体详情如下:
包路径:org.joda.time.tz.ZoneInfoProvider
类名称:ZoneInfoProvider
方法名:loadZoneInfoMap

ZoneInfoProvider.loadZoneInfoMap介绍

[英]Loads the zone info map.
[中]加载区域信息地图。

代码示例

代码示例来源:origin: joda-time/joda-time

/**
 * ZoneInfoProvider searches the given directory for compiled data files.
 *
 * @throws IOException if directory or map file cannot be read
 */
public ZoneInfoProvider(File fileDir) throws IOException {
  if (fileDir == null) {
    throw new IllegalArgumentException("No file directory provided");
  }
  if (!fileDir.exists()) {
    throw new IOException("File directory doesn't exist: " + fileDir);
  }
  if (!fileDir.isDirectory()) {
    throw new IOException("File doesn't refer to a directory: " + fileDir);
  }
  iFileDir = fileDir;
  iResourcePath = null;
  iLoader = null;
  iZoneInfoMap = loadZoneInfoMap(openResource("ZoneInfoMap"));
  iZoneInfoKeys = Collections.unmodifiableSortedSet(new TreeSet<String>(iZoneInfoMap.keySet()));
}

代码示例来源:origin: JodaOrg/joda-time

/**
 * ZoneInfoProvider searches the given directory for compiled data files.
 *
 * @throws IOException if directory or map file cannot be read
 */
public ZoneInfoProvider(File fileDir) throws IOException {
  if (fileDir == null) {
    throw new IllegalArgumentException("No file directory provided");
  }
  if (!fileDir.exists()) {
    throw new IOException("File directory doesn't exist: " + fileDir);
  }
  if (!fileDir.isDirectory()) {
    throw new IOException("File doesn't refer to a directory: " + fileDir);
  }
  iFileDir = fileDir;
  iResourcePath = null;
  iLoader = null;
  iZoneInfoMap = loadZoneInfoMap(openResource("ZoneInfoMap"));
  iZoneInfoKeys = Collections.unmodifiableSortedSet(new TreeSet<String>(iZoneInfoMap.keySet()));
}

代码示例来源:origin: joda-time/joda-time

/**
 * @param favorSystemLoader when true, use the system class loader if
 * loader null. When false, use the current class loader if loader is null.
 */
private ZoneInfoProvider(String resourcePath,
             ClassLoader loader, boolean favorSystemLoader) 
  throws IOException
{
  if (resourcePath == null) {
    throw new IllegalArgumentException("No resource path provided");
  }
  if (!resourcePath.endsWith("/")) {
    resourcePath += '/';
  }
  iFileDir = null;
  iResourcePath = resourcePath;
  if (loader == null && !favorSystemLoader) {
    loader = getClass().getClassLoader();
  }
  iLoader = loader;
  iZoneInfoMap = loadZoneInfoMap(openResource("ZoneInfoMap"));
  iZoneInfoKeys = Collections.unmodifiableSortedSet(new TreeSet<String>(iZoneInfoMap.keySet()));
}

代码示例来源:origin: JodaOrg/joda-time

/**
 * @param favorSystemLoader when true, use the system class loader if
 * loader null. When false, use the current class loader if loader is null.
 */
private ZoneInfoProvider(String resourcePath,
             ClassLoader loader, boolean favorSystemLoader) 
  throws IOException
{
  if (resourcePath == null) {
    throw new IllegalArgumentException("No resource path provided");
  }
  if (!resourcePath.endsWith("/")) {
    resourcePath += '/';
  }
  iFileDir = null;
  iResourcePath = resourcePath;
  if (loader == null && !favorSystemLoader) {
    loader = getClass().getClassLoader();
  }
  iLoader = loader;
  iZoneInfoMap = loadZoneInfoMap(openResource("ZoneInfoMap"));
  iZoneInfoKeys = Collections.unmodifiableSortedSet(new TreeSet<String>(iZoneInfoMap.keySet()));
}

代码示例来源:origin: camunda/camunda-bpm-platform

/**
 * @param favorSystemLoader when true, use the system class loader if
 * loader null. When false, use the current class loader if loader is null.
 */
private ZoneInfoProvider(String resourcePath,
             ClassLoader loader, boolean favorSystemLoader) 
  throws IOException
{
  if (resourcePath == null) {
    throw new IllegalArgumentException("No resource path provided");
  }
  if (!resourcePath.endsWith("/")) {
    resourcePath += '/';
  }
  iFileDir = null;
  iResourcePath = resourcePath;
  if (loader == null && !favorSystemLoader) {
    loader = getClass().getClassLoader();
  }
  iLoader = loader;
  iZoneInfoMap = loadZoneInfoMap(openResource("ZoneInfoMap"));
}

代码示例来源:origin: camunda/camunda-bpm-platform

/**
 * ZoneInfoProvider searches the given directory for compiled data files.
 *
 * @throws IOException if directory or map file cannot be read
 */
public ZoneInfoProvider(File fileDir) throws IOException {
  if (fileDir == null) {
    throw new IllegalArgumentException("No file directory provided");
  }
  if (!fileDir.exists()) {
    throw new IOException("File directory doesn't exist: " + fileDir);
  }
  if (!fileDir.isDirectory()) {
    throw new IOException("File doesn't refer to a directory: " + fileDir);
  }
  iFileDir = fileDir;
  iResourcePath = null;
  iLoader = null;
  iZoneInfoMap = loadZoneInfoMap(openResource("ZoneInfoMap"));
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby

/**
 * @param favorSystemLoader when true, use the system class loader if
 * loader null. When false, use the current class loader if loader is null.
 */
private ZoneInfoProvider(String resourcePath,
             ClassLoader loader, boolean favorSystemLoader) 
  throws IOException
{
  if (resourcePath == null) {
    throw new IllegalArgumentException("No resource path provided");
  }
  if (!resourcePath.endsWith("/")) {
    resourcePath += '/';
  }
  iFileDir = null;
  iResourcePath = resourcePath;
  if (loader == null && !favorSystemLoader) {
    loader = getClass().getClassLoader();
  }
  iLoader = loader;
  iZoneInfoMap = loadZoneInfoMap(openResource("ZoneInfoMap"));
}

代码示例来源:origin: io.virtdata/virtdata-lib-realer

/**
 * ZoneInfoProvider searches the given directory for compiled data files.
 *
 * @throws IOException if directory or map file cannot be read
 */
public ZoneInfoProvider(File fileDir) throws IOException {
  if (fileDir == null) {
    throw new IllegalArgumentException("No file directory provided");
  }
  if (!fileDir.exists()) {
    throw new IOException("File directory doesn't exist: " + fileDir);
  }
  if (!fileDir.isDirectory()) {
    throw new IOException("File doesn't refer to a directory: " + fileDir);
  }
  iFileDir = fileDir;
  iResourcePath = null;
  iLoader = null;
  iZoneInfoMap = loadZoneInfoMap(openResource("ZoneInfoMap"));
  iZoneInfoKeys = Collections.unmodifiableSortedSet(new TreeSet<String>(iZoneInfoMap.keySet()));
}

代码示例来源:origin: Nextdoor/bender

/**
 * @param favorSystemLoader when true, use the system class loader if
 * loader null. When false, use the current class loader if loader is null.
 */
private ZoneInfoProvider(String resourcePath,
             ClassLoader loader, boolean favorSystemLoader) 
  throws IOException
{
  if (resourcePath == null) {
    throw new IllegalArgumentException("No resource path provided");
  }
  if (!resourcePath.endsWith("/")) {
    resourcePath += '/';
  }
  iFileDir = null;
  iResourcePath = resourcePath;
  if (loader == null && !favorSystemLoader) {
    loader = getClass().getClassLoader();
  }
  iLoader = loader;
  iZoneInfoMap = loadZoneInfoMap(openResource("ZoneInfoMap"));
  iZoneInfoKeys = Collections.unmodifiableSortedSet(new TreeSet<String>(iZoneInfoMap.keySet()));
}

代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

/**
 * ZoneInfoProvider searches the given directory for compiled data files.
 *
 * @throws IOException if directory or map file cannot be read
 */
public ZoneInfoProvider(File fileDir) throws IOException {
  if (fileDir == null) {
    throw new IllegalArgumentException("No file directory provided");
  }
  if (!fileDir.exists()) {
    throw new IOException("File directory doesn't exist: " + fileDir);
  }
  if (!fileDir.isDirectory()) {
    throw new IOException("File doesn't refer to a directory: " + fileDir);
  }
  iFileDir = fileDir;
  iResourcePath = null;
  iLoader = null;
  iZoneInfoMap = loadZoneInfoMap(openResource("ZoneInfoMap"));
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-analytics

/**
 * ZoneInfoProvider searches the given directory for compiled data files.
 *
 * @throws IOException if directory or map file cannot be read
 */
public ZoneInfoProvider(File fileDir) throws IOException {
  if (fileDir == null) {
    throw new IllegalArgumentException("No file directory provided");
  }
  if (!fileDir.exists()) {
    throw new IOException("File directory doesn't exist: " + fileDir);
  }
  if (!fileDir.isDirectory()) {
    throw new IOException("File doesn't refer to a directory: " + fileDir);
  }
  iFileDir = fileDir;
  iResourcePath = null;
  iLoader = null;
  iZoneInfoMap = loadZoneInfoMap(openResource("ZoneInfoMap"));
}

代码示例来源:origin: org.joda/com.springsource.org.joda.time

/**
 * @param favorSystemLoader when true, use the system class loader if
 * loader null. When false, use the current class loader if loader is null.
 */
private ZoneInfoProvider(String resourcePath,
             ClassLoader loader, boolean favorSystemLoader) 
  throws IOException
{
  if (resourcePath == null) {
    throw new IllegalArgumentException("No resource path provided");
  }
  if (!resourcePath.endsWith("/")) {
    resourcePath += '/';
  }
  iFileDir = null;
  iResourcePath = resourcePath;
  if (loader == null && !favorSystemLoader) {
    loader = getClass().getClassLoader();
  }
  iLoader = loader;
  iZoneInfoMap = loadZoneInfoMap(openResource("ZoneInfoMap"));
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-analytics

/**
 * @param favorSystemLoader when true, use the system class loader if
 * loader null. When false, use the current class loader if loader is null.
 */
private ZoneInfoProvider(String resourcePath,
             ClassLoader loader, boolean favorSystemLoader) 
  throws IOException
{
  if (resourcePath == null) {
    throw new IllegalArgumentException("No resource path provided");
  }
  if (!resourcePath.endsWith("/")) {
    resourcePath += '/';
  }
  iFileDir = null;
  iResourcePath = resourcePath;
  if (loader == null && !favorSystemLoader) {
    loader = getClass().getClassLoader();
  }
  iLoader = loader;
  iZoneInfoMap = loadZoneInfoMap(openResource("ZoneInfoMap"));
}

代码示例来源:origin: redfish64/TinyTravelTracker

/**
 * ZoneInfoProvider searches the given directory for compiled data files.
 *
 * @throws IOException if directory or map file cannot be read
 */
public ZoneInfoProvider(File fileDir) throws IOException {
  if (fileDir == null) {
    throw new IllegalArgumentException("No file directory provided");
  }
  if (!fileDir.exists()) {
    throw new IOException("File directory doesn't exist: " + fileDir);
  }
  if (!fileDir.isDirectory()) {
    throw new IOException("File doesn't refer to a directory: " + fileDir);
  }
  iFileDir = fileDir;
  iResourcePath = null;
  iLoader = null;
  iZoneInfoMap = loadZoneInfoMap(openResource("ZoneInfoMap"));
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.joda-time

/**
 * ZoneInfoProvider searches the given directory for compiled data files.
 *
 * @throws IOException if directory or map file cannot be read
 */
public ZoneInfoProvider(File fileDir) throws IOException {
  if (fileDir == null) {
    throw new IllegalArgumentException("No file directory provided");
  }
  if (!fileDir.exists()) {
    throw new IOException("File directory doesn't exist: " + fileDir);
  }
  if (!fileDir.isDirectory()) {
    throw new IOException("File doesn't refer to a directory: " + fileDir);
  }
  iFileDir = fileDir;
  iResourcePath = null;
  iLoader = null;
  iZoneInfoMap = loadZoneInfoMap(openResource("ZoneInfoMap"));
}

代码示例来源:origin: org.joda/com.springsource.org.joda.time

/**
 * ZoneInfoProvider searches the given directory for compiled data files.
 *
 * @throws IOException if directory or map file cannot be read
 */
public ZoneInfoProvider(File fileDir) throws IOException {
  if (fileDir == null) {
    throw new IllegalArgumentException("No file directory provided");
  }
  if (!fileDir.exists()) {
    throw new IOException("File directory doesn't exist: " + fileDir);
  }
  if (!fileDir.isDirectory()) {
    throw new IOException("File doesn't refer to a directory: " + fileDir);
  }
  iFileDir = fileDir;
  iResourcePath = null;
  iLoader = null;
  iZoneInfoMap = loadZoneInfoMap(openResource("ZoneInfoMap"));
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby

/**
 * ZoneInfoProvider searches the given directory for compiled data files.
 *
 * @throws IOException if directory or map file cannot be read
 */
public ZoneInfoProvider(File fileDir) throws IOException {
  if (fileDir == null) {
    throw new IllegalArgumentException("No file directory provided");
  }
  if (!fileDir.exists()) {
    throw new IOException("File directory doesn't exist: " + fileDir);
  }
  if (!fileDir.isDirectory()) {
    throw new IOException("File doesn't refer to a directory: " + fileDir);
  }
  iFileDir = fileDir;
  iResourcePath = null;
  iLoader = null;
  iZoneInfoMap = loadZoneInfoMap(openResource("ZoneInfoMap"));
}

代码示例来源:origin: Nextdoor/bender

/**
 * ZoneInfoProvider searches the given directory for compiled data files.
 *
 * @throws IOException if directory or map file cannot be read
 */
public ZoneInfoProvider(File fileDir) throws IOException {
  if (fileDir == null) {
    throw new IllegalArgumentException("No file directory provided");
  }
  if (!fileDir.exists()) {
    throw new IOException("File directory doesn't exist: " + fileDir);
  }
  if (!fileDir.isDirectory()) {
    throw new IOException("File doesn't refer to a directory: " + fileDir);
  }
  iFileDir = fileDir;
  iResourcePath = null;
  iLoader = null;
  iZoneInfoMap = loadZoneInfoMap(openResource("ZoneInfoMap"));
  iZoneInfoKeys = Collections.unmodifiableSortedSet(new TreeSet<String>(iZoneInfoMap.keySet()));
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.joda-time

/**
 * @param favorSystemLoader when true, use the system class loader if
 * loader null. When false, use the current class loader if loader is null.
 */
private ZoneInfoProvider(String resourcePath,
             ClassLoader loader, boolean favorSystemLoader) 
  throws IOException
{
  if (resourcePath == null) {
    throw new IllegalArgumentException("No resource path provided");
  }
  if (!resourcePath.endsWith("/")) {
    resourcePath += '/';
  }
  iFileDir = null;
  iResourcePath = resourcePath;
  if (loader == null && !favorSystemLoader) {
    loader = getClass().getClassLoader();
  }
  iLoader = loader;
  iZoneInfoMap = loadZoneInfoMap(openResource("ZoneInfoMap"));
}

代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

/**
 * @param favorSystemLoader when true, use the system class loader if
 * loader null. When false, use the current class loader if loader is null.
 */
private ZoneInfoProvider(String resourcePath,
             ClassLoader loader, boolean favorSystemLoader) 
  throws IOException
{
  if (resourcePath == null) {
    throw new IllegalArgumentException("No resource path provided");
  }
  if (!resourcePath.endsWith("/")) {
    resourcePath += '/';
  }
  iFileDir = null;
  iResourcePath = resourcePath;
  if (loader == null && !favorSystemLoader) {
    loader = getClass().getClassLoader();
  }
  iLoader = loader;
  iZoneInfoMap = loadZoneInfoMap(openResource("ZoneInfoMap"));
}

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com