Code example for DataInput

Methods: readBooleanreadUTF

0
        dos.writeBoolean(snapshot_command.clear_snapshot);
    } 
 
    public SnapshotCommand deserialize(DataInput dis, int version) throws IOException
    { 
        String keyspace = dis.readUTF();
        String column_family = dis.readUTF();
        String snapshot_name = dis.readUTF();
        boolean clear_snapshot = dis.readBoolean();
        return new SnapshotCommand(keyspace, column_family, snapshot_name, clear_snapshot);
    } 
 
    public long serializedSize(SnapshotCommand snapshot_command, int version)
    { 
        throw new UnsupportedOperationException();
    } 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE