org.eclipse.rse.services.clientserver.search
Class SystemSearchStringMatchLocator
java.lang.Object
org.eclipse.rse.services.clientserver.search.SystemSearchStringMatchLocator
-
public class SystemSearchStringMatchLocator
- extends
Object
This class locates matches.
Methods inherited from class java.lang.
Object
|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
|
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.
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.
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.