AttributesImpl atts = new AttributesImpl();
atts.clear();
handler.startElement(TRIPLETS, atts);
Iterator iter = triplets.iterator();
while (iter.hasNext()) {
FontTriplet triplet = (FontTriplet)iter.next();
atts.clear();
atts.addAttribute(null, NAME, NAME, CDATA, triplet.getName());
atts.addAttribute(null, STYLE, STYLE, CDATA, triplet.getStyle());
atts.addAttribute(null, WEIGHT, WEIGHT, CDATA,
Integer.toString(triplet.getWeight()));
handler.element(TRIPLET, atts);
}
handler.endElement(TRIPLETS);
}