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

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.ui.console
Class MessageConsoleStream

java.lang.Object
  extended by 

java.io.OutputStream
      extended by 

org.eclipse.ui.console.IOConsoleOutputStream
          extended by 
org.eclipse.ui.console.MessageConsoleStream
All Implemented Interfaces:
Closeable, Flushable

public class MessageConsoleStream
extends IOConsoleOutputStream

Used to write messages to a message console. A message console may have more than one stream connected to it. Each stream may be displayed in a different color.

Instances are created via a MessageConsole.

Clients should avoid writing large amounts of output to this stream in the UI thread. The console needs to process the output in the UI thread and if the client hogs the UI thread writing output to the console, the console will not be able to process the output.

Since 3.1, this class extends IOConsoleOutputStream.

Since:
3.0
Restriction:
This class is not intended to be subclassed by clients.
Restriction:
This class is not intended to be instantiated by clients.

Constructor Summary
MessageConsoleStream ( MessageConsole console)
          Constructs a new stream connected to the given console.
 
Method Summary
  MessageConsole getConsole ()
          Returns the console this stream is connected to.
 void print ( String message)
          Appends the specified message to this stream.
 void println ()
          Appends a line separator string to this stream.
 void println ( String message)
          Appends the specified message to this stream, followed by a line separator string.
 
Methods inherited from class org.eclipse.ui.console. IOConsoleOutputStream
close, flush, getColor, getFontStyle, isActivateOnWrite, isClosed, setActivateOnWrite, setColor, setEncoding, setFontStyle, write, write, write, write
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageConsoleStream

public MessageConsoleStream(
MessageConsole console)
Constructs a new stream connected to the given console.

Parameters:
console - the console to write messages to
Method Detail

print

public void print(
String message)
Appends the specified message to this stream.

Parameters:
message - message to append

println

public void println()
Appends a line separator string to this stream.


println

public void println(
String message)
Appends the specified message to this stream, followed by a line separator string.

Parameters:
message - message to print

getConsole

public 
MessageConsole getConsole()
Returns the console this stream is connected to.

Returns:
the console this stream is connected to

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