Code example for DataOutput

Methods: writewriteInt

0
        payload = p;
    } 
 
    @Override 
    void write(final DataOutput out) throws IOException {
        out.writeInt(payload.length);
        out.write(payload);
    } 
 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE