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

📄 iremotefilenamefilter.java

📁 编了一个简单的聊天器
💻 JAVA
字号:
/*
 * This file is a part of the RMI Plugin for Eclipse tutorials.
 * Copyright (C) 2002-7 Genady Beryozkin
 * 
 * You are free to modify this file, as long as you leave
 * the following copyright:
 * 
 * This file is based on the Remote File System example of
 * the RMI Plug-in for Eclipse. The original code is 
 * Copyright (C) 2002-7 Genady Beryozkin
 */

package demo.rmi.filesystem.common;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

/**
 * This interface is used by {@link IRemoteFile#listRemoteFiles()} method
 * 
 * Clients implementing this interface can either export the implementation
 * using {@link UnicastRemoteObject#exportObject(Remote)} and then
 * the server will make callbacks to the client to perform the filtering.
 * This method will be slow! (Every time the server needs to check the file
 * it will make a remote call).
 * 
 * If the implementation's instance is not exported, it will cause the
 * class code to be run on the server which requires some extra caution
 * with client's codebase and raises security considerations (server 
 * running client's code).
 */
public interface IRemoteFilenameFilter extends Remote {

	 boolean accept(IRemoteFile dir, String name) throws RemoteException;
}

⌨️ 快捷键说明

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