本文整理了Java中org.joda.time.tz.ZoneInfoLogger.verbose()
方法的一些代码示例,展示了ZoneInfoLogger.verbose()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZoneInfoLogger.verbose()
方法的具体详情如下:
包路径:org.joda.time.tz.ZoneInfoLogger
类名称:ZoneInfoLogger
方法名:verbose
[英]Gets a flag indicating that verbose logging is required.
[中]获取指示需要详细日志记录的标志。
代码示例来源: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: 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: 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: 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());
内容来源于网络,如有侵权,请联系作者删除!