ChannelShell setPty(true) or setPty(false), different InputStream read type

后端 未结 0 1510
天涯浪人
天涯浪人 2021-01-06 08:50

When I setPty(true), I can directly use in.available() to get the number of bytes that can be read.

When I setPty(false), I have to use in.read() first and then use i

相关标签:
回答
  • 消灭零回复
提交回复
热议问题