Code example for DataOutput

Methods: writeFloat, writeInt

0
  public void read(ByteBuffer buffer) {
    def_nr = buffer.getInt();
    weight = buffer.getFloat();
  } 
  public void write(DataOutput buffer) throws IOException {
    buffer.writeInt(def_nr);
    buffer.writeFloat(weight);
  } 
  public Object setmyarray(Object array) {
    myarray = (MDeformWeight[])array;
    return this;
  } 
  public Object getmyarray() {
    return myarray;
  } 
  public String toString() {
    StringBuilder sb = new StringBuilder("MDeformWeight:\n");
    sb.append("  def_nr: ").append(def_nr).append("\n");
    sb.append("  weight: ").append(weight).append("\n");
    return sb.toString();
  }