通过网络进行Java序列化 [英] Java serialization over network

查看:121
本文介绍了通过网络进行Java序列化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是想知道是否有一个教程或如何序列化对象,将它们放入网络流中,并在另一侧反序列化。我理解序列化,I / O,流,套接字等的原理,我只想了一个客户端向服务器发送对象的示例。

Just want to know if there's a tutorial or a how-to for serializing objects, putting them into a stream over network, and deserialize it on the other side. I understand the principles of serialization, I/O, streams, sockets, and so on, I just would like an example of a client sending an object to a server to start with.

推荐答案

这个(pdf)是一个有用的教程,它将引导您完成序列化和套接字的基础知识,然后将这两个概念结合在一起(大约在幻灯片的中间)以显示如何序列化一个对象并将其从客户端发送到服务器(没有RMI)。我认为这正是你想要的。

This (pdf) is a useful tutorial which walks you through the basics of serialisation, and sockets, then ties the two concepts together (about halfway through the slides) to show how to serialise an object and send it from client to server (no RMI). I think that's precisely what you want.

这篇关于通过网络进行Java序列化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆