private void updateUserMessage() throws IOException
    {
        final byte from = in.readByte();
        final byte dest = in.readByte();
        final byte type = in.readByte();
        final int size = in.readInt();
        if (size > 0)
        {
            final byte[] data = new byte[size];
            if (in.read(data) != -1)
            {
                try (DataInputStream buffer = new DataInputStream(new ByteArrayInputStream(data)))
                {
                    decodeMessage(type, from, dest, buffer);
                }
            }
        }
        final int headerSize = 4;
        bandwidth += headerSize + size;
    }
private void updateUserMessage ( ) throws IOException { final byte from = in . readByte ( ) ; final byte dest = in . readByte ( ) ; final byte type = in . readByte ( ) ; final int size = in . readInt ( ) ; if ( size > 0 ) { final byte [ ] data = new byte [ size ] ; if ( in . read ( data ) != - 1 ) { try ( DataInputStream buffer = new DataInputStream ( new ByteArrayInputStream ( data ) ) ) { decodeMessage ( type , from , dest , buffer ) ; } } } final int headerSize = 4 ; bandwidth += headerSize + size ; }
Update the other client renamed case.

@throws IOException If error when writing data.