To perform a deserialization, I need an ObjectInputStream
. But we just use the AsynchronousSocketChannel
, which cannot be converted to an ObjectInputStream
. What can I do?
Asked
Active
Viewed 280 times
0

Yang Bo
- 3,586
- 3
- 22
- 35
1 Answers
1
You can convert AsynchronousSocketChannel
to InputStream
by Channels.newInputStream(channel)
.

irreputable
- 44,725
- 9
- 65
- 93