Class org.xml.sax.helpers. AttributeListImpl

java.lang.Object
   |
   +—org.xml.sax.helpers.AttributeListImpl

public class AttributeListImpl

extends Object

implements AttributeList—Convenience implementation for AttributeList.

This class provides a convenience implementation of the SAX AttributeList class. This implementation is useful both for SAX parser writers, who can use it to provide attributes to the application, and for SAX application writers, who can use it to create a persistent copy of an element's attribute specifications:

 private AttributeList myatts; public void startElement (String name, AttributeList atts) { // create a persistent copy of the attribute list // for use outside this method myatts = new AttributeListImpl(atts); [...] ...

Get Enterprise Application Integration With XML and Java™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.