using ByteBuffer with Data I/O streams