请问如何实现bytecode的传输?

fxfzx 2004-04-02 08:43:36
有一篇文章中提到:
state mobility using Java object serialization;
code mobility using bytecode transfer and loading;
execution context-control flow by method chaining.

我应该如何实现bytecode transfer and loading?
谢谢。
...全文
67 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
fxfzx 2004-04-13
  • 打赏
  • 举报
回复
找到了,谢谢shi716(石头)。
public interface DataObjectInputStream
The DataObjectInputStream is implemented by the ADK to supply agents with a means of streaming in arbitrarily large SIF_Response and SIF_Event messages.
All SIFDataObjects in the stream must be of the same class. To determine the type, call the getObjectType method to retrieve an ElementDef constant from the SIFDTD class that uniquely identifies the type of data.

public interface DataObjectOutputStream
The DataObjectOutputStream is implemented by the ADK to supply agents with a means of streaming arbitrarily large SIF Data Objects query responses. The ADK handles packetizing and storing SIF_Responses in a local cache for reliable delivery to the ZIS.


fxfzx 2004-04-10
  • 打赏
  • 举报
回复
DataObjectInputStream要自己写么?在Java包中有这个类么?
shi716 2004-04-04
  • 打赏
  • 举报
回复
呵呵,这个问题我恰好作过。
我们当时为了与非JAVA语言进行通讯,传输对象时采用的两种方案。
1。JAVA平台之间采用的JAVA 对象流.就是Java.io.ObjectInputStream,java.io.OutputStream.
2。JAVA平台与其他语言之间采用的就是你所说的字节流。实际上就是把每个JAVA对象的每个属性转化成做byte数组进行传输。这里,建议你用DataObjectInputStream和DataObjectOutputStream。
xuegaosp 2004-04-04
  • 打赏
  • 举报
回复
up
fxfzx 2004-04-03
  • 打赏
  • 举报
回复
请大家帮忙
fxfzx 2004-04-02
  • 打赏
  • 举报
回复
Java 中字节码的传输应该怎么实现呢?谢谢大家了。

62,616

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧