Code example for Attributes

Methods: getLength, getValue

0
        } 
 
        /** Checking for a enclosure */ 
        if (localName.equalsIgnoreCase("enclosure")) {
                /** Lets check we are in an item */ 
            if (this.item != null && attributes != null && attributes.getLength() > 0) {
            	if (attributes.getValue("url") != null) {
            		this.item.setEnclosureUrl(parseLink(attributes.getValue("url")));
            	} 
                if (attributes.getValue("type") != null) {
                	this.item.setEnclosureType(attributes.getValue("type"));
                } 
                if (attributes.getValue("length") != null) {
                	this.item.setEnclosureLength(Long.parseLong(attributes.getValue("length")));
                } 
            } 
        } 
        
    } 
    
    /**