Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2000, 2012 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 Contributors: IBM Corporation - initial API and implementation /
Collects the resource paths reported by a client to this search requestor.
public class PathCollector extends IndexQueryRequestor {
	/* a set of resource paths */
	public HashSet paths = new HashSet(5);
	/* (non-Javadoc)
	 * @see IndexQueryRequestor#acceptIndexMatch(String, SearchPattern, SearchParticipant, AccessRuleSet)
	public boolean acceptIndexMatch(String documentPathSearchPattern indexRecordSearchParticipant participantAccessRuleSet access) {
		return true;

Returns the paths that have been collected.
	public String[] getPaths() {
		return (String[]) this..toArray(new String[this..size()]);
New to GrepCode? Check out our FAQ X