public void save(OutputStream os) throws Exception {
  DataOutputStream out=new DataOutputStream(os);
  out.writeByte(ID());
  if (ID() > 0) {
    out.writeUTF(name);
  }
  write(out);
}

public void save ( OutputStream os ) throws Exception { DataOutputStream out = new DataOutputStream ( os ) ; out . writeByte ( ID ( ) ) ; if ( ID ( ) > 0 ) { out . writeUTF ( name ) ; } write ( out ) ; }
main saving routine . saves the tag and if it ' s a collection , saves its contents as well .
