Code example for ArrayList

Methods: size, toArray

0
            fontData = null;
        } 
    } 
 
    public FontIndexData[] getFontIndexData() { 
        return (FontIndexData[])fontDatas.toArray(new FontIndexData[fontDatas.size()]);
    } 
 
    public void startElement (String uri, String localName, String qName, Attributes attributes)
        throws SAXException { 
        if (qName.equalsIgnoreCase("fontdirectory")) {
            inDocument = true;
            return; 
        } 
        if (inDocument) {
            if (qName.equalsIgnoreCase("font"))
                fontData = new FontIndexData();
            else if (qName.equalsIgnoreCase("name"))
                element = ELEMENT_NAME;
            else if (qName.equalsIgnoreCase("fontformat"))
                element = ELEMENT_FORMAT;