亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? handler.java

?? gcc的組建
?? JAVA
字號:
/* Handler.java -- a class for publishing log messages   Copyright (C) 2002, 2004 Free Software Foundation, Inc.This file is part of GNU Classpath.GNU Classpath is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2, or (at your option)any later version.GNU Classpath is distributed in the hope that it will be useful, butWITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNUGeneral Public License for more details.You should have received a copy of the GNU General Public Licensealong with GNU Classpath; see the file COPYING.  If not, write to theFree Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA02110-1301 USA.Linking this library statically or dynamically with other modules ismaking a combined work based on this library.  Thus, the terms andconditions of the GNU General Public License cover the wholecombination.As a special exception, the copyright holders of this library give youpermission to link this library with independent modules to produce anexecutable, regardless of the license terms of these independentmodules, and to copy and distribute the resulting executable underterms of your choice, provided that you also meet, for each linkedindependent module, the terms and conditions of the license of thatmodule.  An independent module is a module which is not derived fromor based on this library.  If you modify this library, you may extendthis exception to your version of the library, but you are notobligated to do so.  If you do not wish to do so, delete thisexception statement from your version. */package java.util.logging;import java.io.UnsupportedEncodingException;/** * A <code>Handler</code> publishes <code>LogRecords</code> to * a sink, for example a file, the console or a network socket. * There are different subclasses of <code>Handler</code> * to deal with different kinds of sinks. * * <p>FIXME: Are handlers thread-safe, or is the assumption that only * loggers are, and a handler can belong only to one single logger? If * the latter, should we enforce it? (Spec not clear). In any * case, it needs documentation. * * @author Sascha Brawer (brawer@acm.org) */public abstract class Handler{  Formatter     formatter;  Filter        filter;  Level         level;  ErrorManager  errorManager;  String        encoding;  /**   * Constructs a Handler with a logging severity level of   * <code>Level.ALL</code>, no formatter, no filter, and   * an instance of <code>ErrorManager</code> managing errors.   *   * <p><strong>Specification Note:</strong> The specification of the   * Java<sup>TM</sup> Logging API does not mention which character   * encoding is to be used by freshly constructed Handlers.  The GNU   * implementation uses the default platform encoding, but other   * Java implementations might behave differently.   *   * <p><strong>Specification Note:</strong> While a freshly constructed   * Handler is required to have <em>no filter</em> according to the   * specification, <code>null</code> is not a valid parameter for   * <code>Handler.setFormatter</code>.  Therefore, the following   * code will throw a <code>java.lang.NullPointerException</code>:   *   * <p><pre>Handler h = new MyConcreteSubclassOfHandler();h.setFormatter(h.getFormatter());</pre>   *   * It seems strange that a freshly constructed Handler is not   * supposed to provide a Formatter, but this is what the specification   * says.   */  protected Handler()  {    level = Level.ALL;  }  /**   * Publishes a <code>LogRecord</code> to an appropriate sink,   * provided the record passes all tests for being loggable.  The   * <code>Handler</code> will localize the message of the log   * record and substitute any message parameters.   *   * <p>Most applications do not need to call this method directly.   * Instead, they will use use a {@link Logger}, which will   * create LogRecords and distribute them to registered handlers.   *   * <p>In case of an I/O failure, the <code>ErrorManager</code>   * of this <code>Handler</code> will be informed, but the caller   * of this method will not receive an exception.   *   * @param record the log event to be published.   */  public abstract void publish(LogRecord record);  /**   * Forces any data that may have been buffered to the underlying   * output device.   *   * <p>In case of an I/O failure, the <code>ErrorManager</code>   * of this <code>Handler</code> will be informed, but the caller   * of this method will not receive an exception.   */  public abstract void flush();  /**   * Closes this <code>Handler</code> after having flushed   * the buffers.  As soon as <code>close</code> has been called,   * a <code>Handler</code> should not be used anymore. Attempts   * to publish log records, to flush buffers, or to modify the   * <code>Handler</code> in any other way may throw runtime   * exceptions after calling <code>close</code>.   *   * <p>In case of an I/O failure, the <code>ErrorManager</code>   * of this <code>Handler</code> will be informed, but the caller   * of this method will not receive an exception.   *   * @throws SecurityException if a security manager exists and   *         the caller is not granted the permission to control   *         the logging infrastructure.   */  public abstract void close()    throws SecurityException;  /**   * Returns the <code>Formatter</code> which will be used to   * localize the text of log messages and to substitute   * message parameters.  A <code>Handler</code> is encouraged,   * but not required to actually use an assigned   * <code>Formatter</code>.   *   * @return the <code>Formatter</code> being used, or   *         <code>null</code> if this <code>Handler</code>   *         does not use formatters and no formatter has   *         ever been set by calling <code>setFormatter</code>.   */  public Formatter getFormatter()  {    return formatter;  }  /**   * Sets the <code>Formatter</code> which will be used to   * localize the text of log messages and to substitute   * message parameters.  A <code>Handler</code> is encouraged,   * but not required to actually use an assigned   * <code>Formatter</code>.   *   * @param formatter the new <code>Formatter</code> to use.   *   * @throws SecurityException if a security manager exists and   *         the caller is not granted the permission to control   *         the logging infrastructure.   *   * @throws NullPointerException if <code>formatter</code> is   *         <code>null</code>.   */  public void setFormatter(Formatter formatter)    throws SecurityException  {    LogManager.getLogManager().checkAccess();        /* Throws a NullPointerException if formatter is null. */    formatter.getClass();    this.formatter = formatter;  }  /**   * Returns the character encoding which this handler uses for publishing   * log records.   *   * @return the name of a character encoding, or <code>null</code>   *         for the default platform encoding.   */  public String getEncoding()  {    return encoding;  }  /**   * Sets the character encoding which this handler uses for publishing   * log records.  The encoding of a <code>Handler</code> must be   * set before any log records have been published.   *   * @param encoding the name of a character encoding, or <code>null</code>   *            for the default encoding.   *   * @exception SecurityException if a security manager exists and   *            the caller is not granted the permission to control   *            the logging infrastructure.   *   */  public void setEncoding(String encoding)    throws SecurityException, UnsupportedEncodingException  {    /* Should any developer ever change this implementation, they are     * advised to have a look at StreamHandler.setEncoding(String),     * which overrides this method without calling super.setEncoding.     */    LogManager.getLogManager().checkAccess();    /* Simple check for supported encodings. This is more expensive     * than it could be, but this method is overwritten by StreamHandler     * anyway.     */    if (encoding != null)      new String(new byte[0], encoding);    this.encoding = encoding;  }  /**   * Returns the <code>Filter</code> that currently controls which   * log records are being published by this <code>Handler</code>.   *   * @return the currently active <code>Filter</code>, or   *         <code>null</code> if no filter has been associated.   *         In the latter case, log records are filtered purely   *         based on their severity level.   */  public Filter getFilter()  {    return filter;  }  /**   * Sets the <code>Filter</code> for controlling which   * log records will be published by this <code>Handler</code>.   *   * @param filter the <code>Filter</code> to use, or   *         <code>null</code> to filter log records purely based   *         on their severity level.   */  public void setFilter(Filter filter)    throws SecurityException  {    LogManager.getLogManager().checkAccess();    this.filter = filter;  }  /**   * Returns the <code>ErrorManager</code> that currently deals   * with errors originating from this Handler.   *   * @exception SecurityException if a security manager exists and   *            the caller is not granted the permission to control   *            the logging infrastructure.   */  public ErrorManager getErrorManager()  {    LogManager.getLogManager().checkAccess();    /* Developers wanting to change the subsequent code should     * have a look at Handler.reportError -- it also can create     * an ErrorManager, but does so without checking permissions     * to control the logging infrastructure.     */    if (errorManager == null)      errorManager = new ErrorManager();    return errorManager;  }  public void setErrorManager(ErrorManager manager)  {    LogManager.getLogManager().checkAccess();    /* Make sure manager is not null. */    manager.getClass();    this.errorManager = manager;  }  protected void reportError(String message, Exception ex, int code)  {    if (errorManager == null)      errorManager = new ErrorManager();    errorManager.error(message, ex, code);  }  /**   * Returns the severity level threshold for this <code>Handler</code>   * All log records with a lower severity level will be discarded;   * a log record of the same or a higher level will be published   * unless an installed <code>Filter</code> decides to discard it.   *   * @return the severity level below which all log messages   *         will be discarded.   */  public Level getLevel()  {    return level;  }  /**   * Sets the severity level threshold for this <code>Handler</code>.   * All log records with a lower severity level will be discarded;   * a log record of the same or a higher level will be published   * unless an installed <code>Filter</code> decides to discard it.   *   * @param level the severity level below which all log messages   *              will be discarded.   *   * @exception SecurityException if a security manager exists and   *            the caller is not granted the permission to control   *            the logging infrastructure.   *   * @exception NullPointerException if <code>level</code> is   *            <code>null</code>.   */  public void setLevel(Level level)  {    LogManager.getLogManager().checkAccess();    /* Throw NullPointerException if level is null.  */    level.getClass();    this.level = level;  }  /**   * Checks whether a <code>LogRecord</code> would be logged   * if it was passed to this <code>Handler</code> for publication.   *   * <p>The <code>Handler</code> implementation considers a record as   * loggable if its level is greater than or equal to the severity   * level threshold.  In a second step, if a {@link Filter} has   * been installed, its {@link Filter#isLoggable(LogRecord) isLoggable}   * method is invoked. Subclasses of <code>Handler</code> can override   * this method to impose their own constraints.   *   * @param record the <code>LogRecord</code> to be checked.   *   * @return <code>true</code> if <code>record</code> would   *         be published by {@link #publish(LogRecord) publish},   *         <code>false</code> if it would be discarded.   *   * @see #setLevel(Level)   * @see #setFilter(Filter)   * @see Filter#isLoggable(LogRecord)   *   * @throws NullPointerException if <code>record</code>   *         is <code>null</code>.   */  public boolean isLoggable(LogRecord record)  {    if (record.getLevel().intValue() < level.intValue())      return false;        if (filter != null)      return filter.isLoggable(record);    else      return true;  }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人性生交大片免费看中文 | 美日韩黄色大片| 国产亚洲欧美日韩在线一区| 欧美亚洲国产一卡| 成人在线综合网| 日本免费在线视频不卡一不卡二| 国产精品国产三级国产有无不卡| 91精品国产色综合久久| 99久久er热在这里只有精品66| 麻豆freexxxx性91精品| 亚洲第一av色| 国产精品伦理一区二区| 日韩久久精品一区| 欧美夫妻性生活| 色婷婷av一区二区三区大白胸| 国产成人精品aa毛片| 午夜精品视频在线观看| 中文字幕亚洲电影| 久久综合色综合88| 91麻豆精品国产91久久久资源速度| 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 国产欧美1区2区3区| 6080日韩午夜伦伦午夜伦| 91视频在线看| 成人av网址在线观看| 韩国精品主播一区二区在线观看 | 国产精品欧美综合在线| 日韩美女一区二区三区四区| 欧美唯美清纯偷拍| 一本一道综合狠狠老| av中文字幕不卡| 夫妻av一区二区| 国内精品久久久久影院一蜜桃| 免费看欧美女人艹b| 天堂蜜桃一区二区三区| 亚洲国产成人高清精品| 亚洲高清免费在线| 日韩综合在线视频| 日韩精品电影在线| 麻豆精品一区二区综合av| 日韩电影免费在线看| 午夜精品久久久久| 午夜精品久久久久久久99水蜜桃 | 久久精品国产亚洲高清剧情介绍 | 久久蜜桃av一区二区天堂| 欧美岛国在线观看| 久久天天做天天爱综合色| 久久综合九色综合欧美就去吻| 精品欧美一区二区三区精品久久 | 国内精品自线一区二区三区视频| 久久精品免费观看| 国产麻豆午夜三级精品| 国产成人亚洲精品青草天美| 懂色av一区二区夜夜嗨| jlzzjlzz亚洲日本少妇| 色琪琪一区二区三区亚洲区| 在线观看视频一区| 欧美一区二区在线观看| 亚洲精品在线电影| 久久久久久一二三区| 国产精品久久一级| 一区二区三区小说| 日本美女一区二区三区视频| 精品在线一区二区| 成人av午夜电影| 欧美日韩中文国产| 久久综合色之久久综合| 国产精品你懂的| 亚洲影院久久精品| 免费看欧美女人艹b| 国产精品一区在线观看乱码| av午夜精品一区二区三区| 欧美视频中文字幕| 2023国产精品| 亚洲欧洲制服丝袜| 三级久久三级久久久| 国产一本一道久久香蕉| 91婷婷韩国欧美一区二区| 欧美一区二区三区视频在线| 国产亚洲午夜高清国产拍精品| 亚洲色图色小说| 麻豆久久久久久| 99国产精品国产精品久久| 欧美色男人天堂| 2024国产精品视频| 一区二区三区蜜桃| 国产精品一区不卡| 欧美性猛交一区二区三区精品 | 亚洲成人中文在线| 国产精品白丝jk白祙喷水网站| 色爱区综合激月婷婷| 欧美大片一区二区| 亚洲激情五月婷婷| 国产成人午夜精品影院观看视频 | 国产精品一区二区x88av| 在线亚洲欧美专区二区| 国产无遮挡一区二区三区毛片日本| 亚洲va欧美va人人爽午夜| 国产精品自拍一区| 欧美影院一区二区| 欧美激情综合五月色丁香| 日韩电影一区二区三区四区| 一本大道久久a久久精品综合| 久久这里只有精品首页| 午夜精品久久久久久久99樱桃| av亚洲精华国产精华精华| 久久久久久久精| 蜜臀av性久久久久蜜臀aⅴ流畅| 99久久99精品久久久久久 | 日韩欧美二区三区| 亚洲丰满少妇videoshd| 成人av一区二区三区| 久久久久国产成人精品亚洲午夜| 午夜视频在线观看一区二区| 成人av综合一区| 久久久久久久久久久久久夜| 美国毛片一区二区| 欧美日韩一区三区四区| 一区二区三区久久| 成人av资源在线观看| 亚洲国产精品二十页| 精品在线观看免费| 日韩一级在线观看| 首页国产欧美日韩丝袜| 欧美三级电影一区| 亚洲中国最大av网站| 99riav一区二区三区| 椎名由奈av一区二区三区| 福利一区二区在线观看| 欧美国产一区二区在线观看 | 国产麻豆91精品| 久久婷婷国产综合精品青草| 麻豆精品一区二区av白丝在线| 欧美日韩国产影片| 午夜激情一区二区三区| 欧美丝袜自拍制服另类| 亚洲成人一区在线| 91精品在线免费| 人人爽香蕉精品| 日韩欧美一卡二卡| 国产一区二区三区免费观看| 久久久久88色偷偷免费| 国产精品亚洲专一区二区三区| 欧美激情一区二区三区全黄 | 日韩美女视频在线| 精品综合免费视频观看| 国产午夜亚洲精品羞羞网站| 国产成人精品免费一区二区| 中文字幕一区在线观看| 一本在线高清不卡dvd| 亚洲一区二区美女| 日韩亚洲欧美中文三级| 九色综合狠狠综合久久| 国产欧美视频一区二区三区| 成人激情校园春色| 亚洲精品成人悠悠色影视| 欧美日韩一区二区三区免费看| 日本成人在线不卡视频| 久久久久久黄色| 色美美综合视频| 日韩中文字幕一区二区三区| 欧美不卡一二三| 99精品欧美一区二区三区综合在线| 亚洲综合激情小说| 日韩欧美区一区二| 波多野结衣亚洲| 无吗不卡中文字幕| 久久久三级国产网站| 色噜噜狠狠成人网p站| 日韩中文字幕一区二区三区| 久久久99久久| 欧美日韩一区二区三区免费看| 韩国欧美国产1区| 亚洲精品国产成人久久av盗摄 | 国产一区二区91| 亚洲精品免费视频| 日韩精品一区二区在线| 成人三级伦理片| 日韩国产在线观看一区| 中文字幕第一区| 欧美另类高清zo欧美| 福利一区二区在线观看| 首页欧美精品中文字幕| 中文字幕一区二区三区在线不卡 | 成人欧美一区二区三区1314 | 久久精品人人做| 欧美性三三影院| 国产91色综合久久免费分享| 首页国产丝袜综合| 国产精品另类一区| 91精品国产欧美一区二区| 97久久久精品综合88久久| 久久精品国产亚洲aⅴ| 一区二区三区四区国产精品| 久久综合九色综合97婷婷 | 日韩一区二区在线免费观看| av一区二区三区在线| 精品一区精品二区高清| 亚洲成人av资源| 亚洲欧洲成人自拍|