不可能把InputStream序列化,InputStream是序列化的实现方式(大概是)。所以把InputStream序列化是没有意义的。既然你已经用rmi了,为什么会有这样的需求 ? 重新审视一下你的思路吧,它有问题。要不说说你用这个InputStream做什么用啊 ?
解决方案 »
- 远程连接Access数据库问题
- jsp无法在tomcat的work文件夹里生成class文件
- Struts2 枚举的类型转换问题
- 关于工作流
- java中奇怪的写法问题
- spring配置ibatis时总是出错!
- 处理很大访问量的系统 ibatis应该如何配置???
- 求一篇介绍源注解的文章
- Telnet server,socket 编程,character based screen 就像早期的BBS一样, 用JAVA能实现吗
- 如果一个项目,一开始直接访问的是servlet页面,那么自动进入doPost()方法?
- ##各位大侠大哥,怎么配置j2ee环境变量##
- pet store 安装不上,请各位指点。
public interface Operator extends Remote{
int read(byte[])throws RemoteException;
int write(byte[],int start,int offset)throws RemoteException;
}
public class OperatorImpl extends UnicastRemoteObject implements Operator{
private InputStream is=null;
private OutputStream os=null;
public OperatorImpl(InputStream is,OutputStream){
....
}
public int read(byte[])throws RemoteException{}
public int write(byte[],int start,int offset)throws RemoteException{}
}