⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 defaultcallback.java

📁 MG4J (Managing Gigabytes for Java) is a free full-text search engine for large document collections
💻 JAVA
字号:
package it.unimi.dsi.mg4j.util.parser.callback;/*		  * MG4J: Managing Gigabytes for Java * * Copyright (C) 2005-2007 Sebastiano Vigna  * *  This library is free software; you can redistribute it and/or modify it *  under the terms of the GNU Lesser General Public License as published by the Free *  Software Foundation; either version 2.1 of the License, or (at your option) *  any later version. * *  This library is distributed in the hope that it will be useful, but *  WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *  or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License *  for more details. * *  You should have received a copy of the GNU Lesser General Public License *  along with this program; if not, write to the Free Software *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */import it.unimi.dsi.mg4j.util.MutableString;import it.unimi.dsi.mg4j.util.parser.Attribute;import it.unimi.dsi.mg4j.util.parser.BulletParser;import it.unimi.dsi.mg4j.util.parser.Element;import java.util.Map;/** * A default, do-nothing-at-all callback. *  * <P>Callbacks can inherit from this class and forget about methods they are not interested in. *  * <P>This class has a protected constructor. If you need an instance of this class, use * {@link #getInstance()}. * @deprecated Moved to <code>dsiutils</code>. */@Deprecatedpublic class DefaultCallback implements Callback {	private static final DefaultCallback SINGLETON = new DefaultCallback();	protected DefaultCallback() {}	/**	 * Returns the singleton instance of the default callback.	 * 	 * @return the singleton instance of the default callback.	 */	public static DefaultCallback getInstance() {		return SINGLETON;	}	public void configure( final BulletParser parserUnused ) {}	public void startDocument() {}	public boolean startElement( final Element elementUnused, final Map<Attribute,MutableString> attrMapUnused ) {		return true;	}	public boolean endElement( final Element elementUnused ) {		return true;	}	public boolean characters( final char[] textUnused, final int offsetUnused, final int lengthUnused, final boolean flowBrokenUnused ) {		return true;	}	public boolean cdata( final Element elementUnused, final char[] textUnused, final int offsetUnused, final int lengthUnused ) {		return true;	}	public void endDocument() {}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -