Code example for Vector

Methods: getremovesize

0
	} 
 
	public void endElement(String uri, String localName, String qName)
		throws SAXException 
	{ 
		if(loaders.size() > 1)
		{ 
			SimpleXmlDefaultLoader endingLoader = currentLoader;
			endingLoader.endDocument();
 
			removeCurrentLoader(); 
			currentLoader.endElement(endingLoader.getTag(), endingLoader);
		} 
	} 
 
	public void endDocument() throws SAXException 
	{ 
		currentLoader.endDocument();
	} 
 
 
	private void insertNewCurrentLoader(SimpleXmlDefaultLoader newLoader)
	{ 
		loaders.insertElementAt(newLoader, 0);
		currentLoader = newLoader;
	} 
 
	private void removeCurrentLoader() 
	{ 
		loaders.remove(0);
		if(loaders.size() == 0)
			currentLoader = null;
		else 
			currentLoader = (SimpleXmlDefaultLoader)loaders.get(0);
	} 
 
	boolean gotFirstTag;
	Vector loaders;
	SimpleXmlDefaultLoader currentLoader;
Stop searching for code, let great code find you!  Add Codota to your java IDE