Code example for DataOutputStream

Methods: writeFloatwriteShort

0
        this.b = datainputstream.readShort();
        this.c = datainputstream.readFloat();
    } 
 
    public void a(DataOutputStream dataoutputstream) {
        dataoutputstream.writeShort(this.a);
        dataoutputstream.writeShort(this.b);
        dataoutputstream.writeFloat(this.c);
    } 
 
    public void handle(NetHandler nethandler) {
        nethandler.a(this);
    } 
 
    public int a() { 
        return 8; 
    } 
 
    public boolean e() { 
        return true; 
Experience pair programming with AI  Get Codota for Java