Code example for DataInput

Methods: readByte, readInt

0
        this.a = i;
        this.b = b0;
    } 
 
    public void a(DataInput datainput) {
        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; 
    }