0

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?

Yang Bo
  • 3,586
  • 3
  • 22
  • 35

1 Answers1

1

You can convert AsynchronousSocketChannel to InputStream by Channels.newInputStream(channel).

irreputable
  • 44,725
  • 9
  • 65
  • 93