Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

RSE
Release 3.0

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.0

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

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire