• 大小: 35.42MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-06-13
  • 语言: 其他
  • 标签: dk1.6  

资源简介

jdk1.6 源码(包括sun公司实现的代码)

资源截图

代码片段和文件信息

/*
 * @(#)LogSupport.java 1.4 05/11/17
 *
 * Copyright 2006 Sun Microsystems Inc. All Rights Reserved.
 *
 * This software is the proprietary information of Sun Microsystems Inc. 
 * Use is subject to license terms.
 *
 */

package com.sun.activation.registries;

import java.io.*;
import java.util.logging.*;

/**
 * Logging related methods.
 */
public class LogSupport {
    private static boolean debug = false;
    private static Logger logger;
    private static final Level level = Level.FINE;

    static {
try {
    debug = Boolean.getBoolean(“javax.activation.debug“);
} catch (Throwable t) {
    // ignore any errors
}
logger = Logger.getLogger(“javax.activation“);
    }

    /**
     * Constructor.
     */
    private LogSupport() {
// private constructor can‘t create instances
    }

    public static void log(String msg) {
if (debug)
    System.out.println(msg);
logger.log(level msg);
    }

    public static void log(String msg Throwable t) {
if (debug)
    System.out.println(msg + “; Exception: “ + t);
logger.log(level msg t);
    }

    public static boolean isLoggable() {
return debug || logger.isLoggable(level);
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2009-11-04 09:12  com\
     目录           0  2009-11-04 09:12  com\sun\
     目录           0  2009-11-04 09:12  com\sun\accessibility\
     目录           0  2009-11-04 09:12  com\sun\accessibility\internal\
     目录           0  2009-11-04 09:12  com\sun\accessibility\internal\resources\
     文件        2781  2009-11-04 09:12  com\sun\accessibility\internal\resources\accessibility.properties
     文件        3145  2009-11-04 09:12  com\sun\accessibility\internal\resources\accessibility_de.properties
     文件        2731  2009-11-04 09:12  com\sun\accessibility\internal\resources\accessibility_en.properties
     文件        3290  2009-11-04 09:12  com\sun\accessibility\internal\resources\accessibility_es.properties
     文件        3534  2009-11-04 09:12  com\sun\accessibility\internal\resources\accessibility_fr.properties
     文件        3243  2009-11-04 09:12  com\sun\accessibility\internal\resources\accessibility_it.properties
     文件        4687  2009-11-04 09:12  com\sun\accessibility\internal\resources\accessibility_ja.properties
     文件        4242  2009-11-04 09:12  com\sun\accessibility\internal\resources\accessibility_ko.properties
     文件        3034  2009-11-04 09:12  com\sun\accessibility\internal\resources\accessibility_sv.properties
     文件        3598  2009-11-04 09:12  com\sun\accessibility\internal\resources\accessibility_zh_CN.properties
     文件        3801  2009-11-04 09:12  com\sun\accessibility\internal\resources\accessibility_zh_TW.properties
     目录           0  2009-11-04 09:12  com\sun\activation\
     目录           0  2009-11-04 09:12  com\sun\activation\registries\
     文件        1169  2009-11-04 09:12  com\sun\activation\registries\LogSupport.java
     文件       17222  2009-11-04 09:12  com\sun\activation\registries\MailcapFile.java
     文件         533  2009-11-04 09:12  com\sun\activation\registries\MailcapParseException.java
     文件        7565  2009-11-04 09:12  com\sun\activation\registries\MailcapTokenizer.java
     文件         701  2009-11-04 09:12  com\sun\activation\registries\MimeTypeEntry.java
     文件        7513  2009-11-04 09:12  com\sun\activation\registries\MimeTypeFile.java
     目录           0  2009-11-04 09:12  com\sun\awt\
     文件       21292  2009-11-04 09:12  com\sun\awt\AWTUtilities.java
     文件        6622  2009-11-04 09:12  com\sun\awt\SecurityWarning.java
     文件         278  2009-11-04 09:12  com\sun\awt\package-info.java
     目录           0  2009-11-04 09:12  com\sun\beans\
     文件       13586  2009-11-04 09:12  com\sun\beans\objectHandler.java
     目录           0  2009-11-04 09:12  com\sun\codemodel\
............此处省略15348个文件信息

评论

共有 条评论