public static void write(OutStream out,List records) throws IOException {
  for (Iterator enumerator=records.iterator(); enumerator.hasNext(); ) {
    ButtonRecord rec=(ButtonRecord)enumerator.next();
    rec.write(out);
  }
  out.writeUI8(0);
}

public static void write ( OutStream out , List records ) throws IOException { for ( Iterator enumerator = records . iterator ( ) ; enumerator . hasNext ( ) ; ) { ButtonRecord rec = ( ButtonRecord ) enumerator . next ( ) ; rec . write ( out ) ; } out . writeUI8 ( 0 ) ; }
write a button record array
