saytoroom.java

来自「piweurrrrq i o fhsadhfka fd dskajc zxkjc」· Java 代码 · 共 27 行

JAVA
27
字号
/* * Copyright (c) 2000 Lyrisoft Solutions, Inc. * Used by permission */package com.lyrisoft.chat.client.command;import com.lyrisoft.chat.client.Client;/** * Say something to everyone in the room. * This happens to be the default UserCommandProcessor. */public class SayToRoom extends UserCommandProcessor {    /**     * Invokes sayToRoom() on the local view of the ChatServer.     * @see com.lyrisoft.chat.server.local.ChatServerLocal#sayToRoom     */    public void process(String input, String arg, Client client) {        if (arg != null) {            client.getServerInterface().sayToRoom(arg, input);        } else {            (new Throwable()).printStackTrace();            System.err.println("FIXME: what should I do here?");        }    }}

⌨️ 快捷键说明

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