gpt4 book ai didi

org.joda.time.tz.ZoneInfoLogger类的使用及代码示例

转载 作者:知者 更新时间:2024-03-20 21:38:31 25 4
gpt4 key购买 nike

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

ZoneInfoLogger介绍

[英]Logger for the compiler.
[中]编译器的记录器。

代码示例

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

ZoneInfoLogger.set(verbose);
ZoneInfoCompiler zic = new ZoneInfoCompiler();
zic.compile(outputDir, sources);

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

private void writeZone(File outputDir, DateTimeZoneBuilder builder, DateTimeZone tz) throws IOException {
  if (ZoneInfoLogger.verbose()) {
    System.out.println("Writing " + tz.getID());
  }
  File file = new File(outputDir, tz.getID());
  if (!file.getParentFile().exists()) {
    file.getParentFile().mkdirs();
  }
  OutputStream out = new FileOutputStream(file);
  try {
    builder.writeTo(tz.getID(), out);
  } finally {
    out.close();
  }
  // Test if it can be read back.
  InputStream in = new FileInputStream(file);
  DateTimeZone tz2 = DateTimeZoneBuilder.readFrom(in, tz.getID());
  in.close();
  if (!tz.equals(tz2)) {
    System.out.println("*e* Error in " + tz.getID() +
              ": Didn't read properly from file");
  }
}

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

private void writeZone(File outputDir, DateTimeZoneBuilder builder, DateTimeZone tz) throws IOException {
  if (ZoneInfoLogger.verbose()) {
    System.out.println("Writing " + tz.getID());
  }
  File file = new File(outputDir, tz.getID());
  if (!file.getParentFile().exists()) {
    file.getParentFile().mkdirs();
  }
  OutputStream out = new FileOutputStream(file);
  try {
    builder.writeTo(tz.getID(), out);
  } finally {
    out.close();
  }
  // Test if it can be read back.
  InputStream in = new FileInputStream(file);
  DateTimeZone tz2 = DateTimeZoneBuilder.readFrom(in, tz.getID());
  in.close();
  if (!tz.equals(tz2)) {
    System.out.println("*e* Error in " + tz.getID() +
              ": Didn't read properly from file");
  }
}

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

ZoneInfoLogger.set(verbose);
ZoneInfoCompiler zic = new ZoneInfoCompiler();
zic.compile(outputDir, sources);

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

if (ZoneInfoLogger.verbose()) {
  System.out.println("Good link: " + alias + " -> " + baseId + " revived");
  if (ZoneInfoLogger.verbose()) {
    System.out.println("Back link: " + alias + " -> " + tz.getID());

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

ZoneInfoLogger.set(verbose);
ZoneInfoCompiler zic = new ZoneInfoCompiler();
zic.compile(outputDir, sources);

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

if (ZoneInfoLogger.verbose()) {
  System.out.println("Good link: " + alias + " -> " + baseId + " revived");
  if (ZoneInfoLogger.verbose()) {
    System.out.println("Back link: " + alias + " -> " + tz.getID());

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

ZoneInfoLogger.set(verbose);
ZoneInfoCompiler zic = new ZoneInfoCompiler();
zic.compile(outputDir, sources);

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

curNameKey.equals(zoneNameData[4])) {
  if (ZoneInfoLogger.verbose()) {
    System.out.println("Fixing duplicate name key - " + nextNameKey);
    System.out.println("     - " + new DateTime(trans[i], chrono) +
if (tailZone.iStartRecurrence.getNameKey()
  .equals(tailZone.iEndRecurrence.getNameKey())) {
  if (ZoneInfoLogger.verbose()) {
    System.out.println("Fixing duplicate recurrent name key - " +
              tailZone.iStartRecurrence.getNameKey());

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

curNameKey.equals(zoneNameData[4])) {
  if (ZoneInfoLogger.verbose()) {
    System.out.println("Fixing duplicate name key - " + nextNameKey);
    System.out.println("     - " + new DateTime(trans[i], chrono) +
if (tailZone.iStartRecurrence.getNameKey()
  .equals(tailZone.iEndRecurrence.getNameKey())) {
  if (ZoneInfoLogger.verbose()) {
    System.out.println("Fixing duplicate recurrent name key - " +
              tailZone.iStartRecurrence.getNameKey());

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

private void writeZone(File outputDir, DateTimeZoneBuilder builder, DateTimeZone tz) throws IOException {
  if (ZoneInfoLogger.verbose()) {
    System.out.println("Writing " + tz.getID());
  }
  File file = new File(outputDir, tz.getID());
  if (!file.getParentFile().exists()) {
    file.getParentFile().mkdirs();
  }
  OutputStream out = new FileOutputStream(file);
  try {
    builder.writeTo(tz.getID(), out);
  } finally {
    out.close();
  }
  // Test if it can be read back.
  InputStream in = new FileInputStream(file);
  DateTimeZone tz2 = DateTimeZoneBuilder.readFrom(in, tz.getID());
  in.close();
  if (!tz.equals(tz2)) {
    System.out.println("*e* Error in " + tz.getID() +
              ": Didn't read properly from file");
  }
}

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

private void writeZone(File outputDir, DateTimeZoneBuilder builder, DateTimeZone tz) throws IOException {
  if (ZoneInfoLogger.verbose()) {
    System.out.println("Writing " + tz.getID());
  }
  File file = new File(outputDir, tz.getID());
  if (!file.getParentFile().exists()) {
    file.getParentFile().mkdirs();
  }
  OutputStream out = new FileOutputStream(file);
  try {
    builder.writeTo(tz.getID(), out);
  } finally {
    out.close();
  }
  // Test if it can be read back.
  InputStream in = new FileInputStream(file);
  DateTimeZone tz2 = DateTimeZoneBuilder.readFrom(in, tz.getID());
  in.close();
  if (!tz.equals(tz2)) {
    System.out.println("*e* Error in " + tz.getID() +
              ": Didn't read properly from file");
  }
}

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

if (ZoneInfoLogger.verbose()) {
  System.out.println("Good link: " + alias + " -> " + baseId + " revived");
  if (ZoneInfoLogger.verbose()) {
    System.out.println("Back link: " + alias + " -> " + tz.getID());

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

if (ZoneInfoLogger.verbose()) {
  System.out.println("Good link: " + alias + " -> " + baseId + " revived");
  if (ZoneInfoLogger.verbose()) {
    System.out.println("Back link: " + alias + " -> " + tz.getID());

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

curNameKey.equals(zoneNameData[4])) {
  if (ZoneInfoLogger.verbose()) {
    System.out.println("Fixing duplicate name key - " + nextNameKey);
    System.out.println("     - " + new DateTime(trans[i], chrono) +
if (tailZone.iStartRecurrence.getNameKey()
  .equals(tailZone.iEndRecurrence.getNameKey())) {
  if (ZoneInfoLogger.verbose()) {
    System.out.println("Fixing duplicate recurrent name key - " +
              tailZone.iStartRecurrence.getNameKey());

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

curNameKey.equals(zoneNameData[4])) {
  if (ZoneInfoLogger.verbose()) {
    System.out.println("Fixing duplicate name key - " + nextNameKey);
    System.out.println("     - " + new DateTime(trans[i], chrono) +
if (tailZone.iStartRecurrence.getNameKey()
  .equals(tailZone.iEndRecurrence.getNameKey())) {
  if (ZoneInfoLogger.verbose()) {
    System.out.println("Fixing duplicate recurrent name key - " +
              tailZone.iStartRecurrence.getNameKey());

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