在Java中,我有以下的Java的InputStream的0x0A问题
while(true) {
input = clientSocket.getInputStream();
byte[] bytes = new byte[4096];
int numRead=input.read(bytes, 0, bytes.length);
System.out.println(numRead);
}
当我发送数据流在本地,在十六进制0A 48 08 05 12 20 44 36,我收到此一气呵成和出放是:
8 (with the hex being 0A 48 08 05 12 20 44 36)
但是当我通过无线网络,我得到下面的输出运行此:
1 (with the hex being 0A)
7 (with the hex being 48 08 05 12 20 44 36)
为什么这样做呢?我期望它返回值8(十六进制0A 48 08 05 12 20 44 36)
我在这里错过了什么吗?
在此先感谢