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

📄 messageformat.java

📁 关于 RFID 读写器的相关内容
💻 JAVA
字号:
/*
 * Copyright (C) 2007 ETH Zurich
 *
 * This file is part of Fosstrak (www.fosstrak.org).
 *
 * Fosstrak is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License version 2.1, as published by the Free Software Foundation.
 *
 * Fosstrak 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 Fosstrak; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 * Boston, MA  02110-1301  USA
 */

package org.fosstrak.reader.rprm.core.msg;

/**
 * This is a helper class because there are no Enums in Java 1.4.
 * 
 * @author Andreas F黵er, ETH Zurich Switzerland, Winter 2005/06
 * 
 */
public final class MessageFormat {

	/** Unique constant representing the XML format. */
	private static final int XML_FORMAT = 1;

	/** Unique constant representing the TEXT format. */
	private static final int TEXT_FORMAT = 2;

	/** Message format is XML. */
	public static final MessageFormat XML = new MessageFormat(XML_FORMAT);

	/** Message format is Text. */
	public static final MessageFormat TEXT = new MessageFormat(TEXT_FORMAT);

	/** The message format. */
	private int messageFormat;

	/**
	 * Private constructor to hide the default construction from public use.
	 * 
	 * @param value
	 *            The message type defined by the constants XML_FORMAT and
	 *            TEXT_FORMAT.
	 */
	private MessageFormat(final int value) {
		this.messageFormat = value;
	}
}

⌨️ 快捷键说明

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