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

📄 constants.java

📁 google公司的用Java写的一个聊天软件的原代码
💻 JAVA
字号:
/*************************************************************************** *   Copyright 2006-2008 by Christian Ihle                                 * *   kontakt@usikkert.net                                                  * *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of the GNU General Public License as published by  * *   the Free Software Foundation; either version 2 of the License, or     * *   (at your option) any later version.                                   * *                                                                         * *   This program 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 General Public License for more details.                          * *                                                                         * *   You should have received a copy of the GNU 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.             * ***************************************************************************/package net.usikkert.kouchat;/** * This interface contains constants used globally in the application. * * @author Christian Ihle */public interface Constants{	/**	 * The name of the application.	 */	String APP_NAME = "KouChat";	/**	 * The application version.	 */	String APP_VERSION = "0.9.8";	/**	 * Which license the application has.	 */	String APP_LICENSE_NAME = "GNU GPLv2";	/**	 * The icon used to identify the application.	 */	String APP_ICON = "/icons/kou_normal.png";	/**	 * The home page of this application.	 */	String APP_WEB = "http://kouchat.googlecode.com/";	/**	 * Copyright from year, to year.	 */	String APP_COPYRIGHT_YEARS = "2006-2008";	/**	 * Name of the author of this application.	 */	String AUTHOR_NAME = "Christian Ihle";	/**	 * The email address of the author.	 */	String AUTHOR_MAIL = "kontakt@usikkert.net";	/**	 * The multicast udp port used for sending and receiving	 * packets for the main chat.	 */	int NETWORK_CHAT_PORT = 40556;	/**	 * The normal udp port used for sending and receiving	 * packets for private chats. This is only the starting port.	 * If it is already in use, port +1 is tried, and so on.	 */	int NETWORK_PRIVCHAT_PORT = 40656;	/**	 * The tcp port used for receiving file transfers.	 * This is only the starting port.	 * If it is already in use, port +1 is tried, and so on.	 */	int NETWORK_FILE_TRANSFER_PORT = 40756;	/**	 * The size of the udp packets sent from normal and	 * private chats.	 */	int NETWORK_PACKET_SIZE = 512;	/**	 * The multicast address used for sending and receiving	 * packets for the main chat.	 */	String NETWORK_IP = "224.168.5.200";	/**	 * The character set used for messages.	 */	String MESSAGE_CHARSET = "UTF-8";	/**	 * Name of the property used to save and retrieve	 * the type of user interface the client is using.	 */	String PROPERTY_CLIENT_UI = "chat.client.ui";	/**	 * Max number of bytes allowed in a message to send	 * over a udp connection.	 */	int MESSAGE_MAX_BYTES = 450;	/**	 * The folder where the application can save files.	 */	String APP_FOLDER = System.getProperty( "user.home" )			+ System.getProperty( "file.separator" ) + "." + APP_NAME.toLowerCase()			+ System.getProperty( "file.separator" );	/**	 * The folder where log files are stored.	 */	String APP_LOG_FOLDER = APP_FOLDER + "logs" + System.getProperty( "file.separator" );	/**	 * Which file to find the license text.	 */	String FILE_LICENSE = "COPYING";	/**	 * Which file to find the frequently asked questions.	 */	String FILE_FAQ = "FAQ";}

⌨️ 快捷键说明

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