Code example for DataOutput

Methods: writeByte, writeInt

0
        this.a = datainput.readInt();
        this.b = datainput.readByte();
    } 
 
    public void a(DataOutput dataoutput) {
        dataoutput.writeInt(this.a);
        dataoutput.writeByte(this.b);
    } 
 
    public void handle(Connection connection) {
        connection.a(this);
    } 
 
    public int a() { 
        return 5; 
    } 
 
    public boolean e() { 
        return true; 
    }