Prova anche con DataInputStream.

Ciao.