RSE
Release 3.2

org.eclipse.rse.services.clientserver.search
Class SystemSearchStringMatchLocator

java.lang.Object
  extended by org.eclipse.rse.services.clientserver.search.SystemSearchStringMatchLocator

public class SystemSearchStringMatchLocator
extends Object

This class locates matches.


Constructor Summary
SystemSearchStringMatchLocator(Reader reader, SystemSearchStringMatcher stringMatcher)
          Constructor for creating a match locator.
 
Method Summary
 Reader getReader()
          Gets the reader.
 SystemSearchStringMatcher getStringMatcher()
          Gets the search string matcher.
 SystemSearchLineMatch[] locateMatches()
          Locates matches.
protected  int readLine(Reader reader, StringBuffer sb)
          Reads a line of text from the given reader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemSearchStringMatchLocator

public SystemSearchStringMatchLocator(Reader reader,
                                      SystemSearchStringMatcher stringMatcher)
Constructor for creating a match locator.

Parameters:
reader - the reader from which to read and look for matches.
stringMatcher - the search string matcher.
Method Detail

getStringMatcher

public SystemSearchStringMatcher getStringMatcher()
Gets the search string matcher.

Returns:
the string matcher.

getReader

public Reader getReader()
Gets the reader.

Returns:
the reader.

locateMatches

public SystemSearchLineMatch[] locateMatches()
                                      throws IOException
Locates matches.

Returns:
an array of matches, or an empty array if none exists.
Throws:
IOException - if an I/O error occurs.

readLine

protected int readLine(Reader reader,
                       StringBuffer sb)
                throws IOException
Reads a line of text from the given reader.

Parameters:
reader - the reader.
sb - the buffer.
Returns:
the result of reading the line.
Throws:
IOException - if an I/O error occurs.

RSE
Release 3.2

Copyright (c) IBM Corporation and others 2000, 2010. All Rights Reserved.