Code example for DataInputStream

Methods: readBooleanreadUTF

0
            dos.writeBoolean(tr.success);
        } 
 
        public TruncateResponse deserialize(DataInputStream dis) throws IOException
        { 
            String keyspace = dis.readUTF();
            String columnFamily = dis.readUTF();
            boolean success = dis.readBoolean();
            return new TruncateResponse(keyspace, columnFamily, success);
        } 
    } 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE