text: public int createFormat(String formatString) {maxformatid = maxformatid >= 0xa4 ? maxformatid + 1 : 0xa4; FormatRecord rec = new FormatRecord(maxformatid, formatString);int pos = 0;while ( pos < records.size() && records.get( pos ).getSid() != FormatRecord.sid ) {pos++;}pos += formats.size();formats.add( rec );records.add( pos, rec );return maxformatid;}