Remote Systems
v6.4.1

com.ibm.etools.systems.core.clientserver.search
Class SystemSearchStringMatchLocator

java.lang.Object
  extended bycom.ibm.etools.systems.core.clientserver.search.SystemSearchStringMatchLocator
All Implemented Interfaces:
ISystemSearchConstants

public class SystemSearchStringMatchLocator
extends Object
implements ISystemSearchConstants

This class locates matches.


Field Summary
 
Fields inherited from interface com.ibm.etools.systems.core.clientserver.search.ISystemSearchConstants
CR_CHAR, LF_CHAR
 
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.

Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.