1) you should flush all streams immediately before you close them.
2) When the encoding is no longer ASCII, the assumption that bytes and chars are essentially the same things also breaks down
3)int unsignedByte = signedByte >= 0 ? signedByte : 256 + signedByte;
Nessun commento:
Posta un commento