?? exceptionlogfilter.java
字號:
/* * Copyright (c) 2004 jPOS.org * * See terms of license at http://jpos.org/license.html * */package org.jpos.util;import java.util.Iterator;/** * A specific log listener that filters all LogEvents that doesn't * contain any exception. * @author Alejandro Revilla * @version $Revision: 1.1 $ $Date: 2004/06/10 01:15:02 $ */public class ExceptionLogFilter implements LogListener { public ExceptionLogFilter () { super(); } public synchronized LogEvent log (LogEvent evt) { Iterator iter = evt.getPayLoad().iterator(); while (iter.hasNext()) { if (iter.next() instanceof Throwable) return evt; } return null; }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -