Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2000, 2006 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html Contributors: IBM Corporation - initial API and implementation William Mitsuda (wmitsuda@gmail.com) - Bug 153879 [Wizards] configurable size of cvs commit comment history /
package org.eclipse.team.internal.ccvs.ui.repo;
	private Vector comments;
	}

See also:
ContentHandler#characters(char[] , int , int )
	public void characters(char[] charsint startIndexint lengththrows SAXException {
		if ( == nullreturn;
		.append(charsstartIndexlength);
	}

See also:
ContentHandler#startElement(java.lang.String , java.lang.String , java.lang.String , org.xml.sax.Attributes )
	public void startElement(
			String namespaceURI,
			String localName,
			String qName,
			Attributes atts)
			throws SAXException {
		String elementName = getElementName(namespaceURIlocalNameqName);
			 = new StringBuffer();
			return;
			return;
		}
	}

	public void endElement(String namespaceURIString localNameString qName) {
		String elementName = getElementName(namespaceURIlocalNameqName);
			 = null;
			return;
			return;
	}
	/*
	 * Couldn't figure out from the SAX API exactly when localName vs. qName is used.
	 * However, the XML for project sets doesn't use namespaces so either of the two names
	 * is fine. Therefore, use whichever one is provided.
	 */
	private String getElementName(String namespaceURIString localNameString qName) {
		if (localName != null && localName.length() > 0) {
			return localName;
else {
			return qName;
		}
	}
New to GrepCode? Check out our FAQ X