Code example for DataOutput

Methods: writewriteShort

0
        this.c = new byte[datainput.readUnsignedShort()];
        datainput.readFully(this.c);
    } 
 
    public void a(DataOutput dataoutput) {
        dataoutput.writeShort(this.a);
        dataoutput.writeShort(this.b);
        dataoutput.writeShort(this.c.length);
        dataoutput.write(this.c);
    } 
 
    public void handle(Connection connection) {
        connection.a(this);
    } 
 
    public int a() { 
        return 4 + this.c.length;
    } 
} 
Contextual code suggestions in your IDE  Get Codota for Java