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

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.debug.core.model
Interface IStreamMonitor

All Known Subinterfaces:
IFlushableStreamMonitor

public interface IStreamMonitor

A stream monitor manages the contents of the stream a process is writing to, and notifies registered listeners of changes in the stream.

Clients may implement this interface. Generally, a client that provides an implementation of the IStreamsProxy interface must also provide an implementation of this interface.

See Also:
IStreamsProxy, IFlushableStreamMonitor

Method Summary
 void addListener ( IStreamListener listener)
          Adds the given listener to this stream monitor's registered listeners.
  String getContents ()
          Returns the entire current contents of the stream.
 void removeListener ( IStreamListener listener)
          Removes the given listener from this stream monitor's registered listeners.
 

Method Detail

addListener

void addListener(
IStreamListener listener)
Adds the given listener to this stream monitor's registered listeners. Has no effect if an identical listener is already registered.

Parameters:
listener - the listener to add

getContents


String getContents()
Returns the entire current contents of the stream. An empty String is returned if the stream is empty.

Returns:
the stream contents as a String

removeListener

void removeListener(
IStreamListener listener)
Removes the given listener from this stream monitor's registered listeners. Has no effect if the listener is not already registered.

Parameters:
listener - the listener to remove

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


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