-------------
By the end, this is a problem here, with the DataInputStream.read(byte[], int, int) will stop reading till the EOF, but actually it has not reached the EOF, that's mis-reporting by the InputStream, so I have to use DataInputStream.readFully(byte[], int, int) instead of read(byte[], int, int), keep reading ignore the available size, until the IOExecption. I think that's my be problem of the implementation of DataInputStream in Java 1.5 SDK.
CipherInputStream and CipherOutputStream in Action
最新推荐文章于 2024-04-18 15:03:19 发布