Code example for DataInputStream

Methods: read, readBoolean, readInt, readUTF

0
        } 
	} 
 
    public ReadResponseMessage deserialize(DataInputStream dis) throws IOException
    { 
    	String table = dis.readUTF();
        int digestSize = dis.readInt();
        byte[] digest = new byte[digestSize];
        dis.read(digest, 0 , digestSize);
        boolean isDigest = dis.readBoolean();
 
        Row row = null;
        if ( !isDigest )
        { 
            row = Row.serializer().deserialize(dis);
        } 
 
		ReadResponseMessage rmsg = null;
    	if( isDigest  )
        { 
    		rmsg =  new ReadResponseMessage(table, digest);