|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
org.eclipse.ui.console.IOConsoleOutputStream
OutputStream used to write to an IOConsole.
Clients are not intended to instantiate this class directly, instead
use IOConsole.newOutputStream()
. Clients are not intended
to subclass this class.
Method Summary | |
---|---|
void |
close()
|
void |
flush()
|
Color |
getColor()
Returns the color of this stream, or null
if default. |
int |
getFontStyle()
Returns the font style used to decorate data written to this stream. |
boolean |
isActivateOnWrite()
Returns whether the console this stream is writing to will be activated when this stream is written to. |
boolean |
isClosed()
Returns true if the stream has been closed |
void |
setActivateOnWrite(boolean activateOnWrite)
Sets whether to activate the console this stream is writing to when this stream is written to. |
void |
setColor(Color newColor)
Sets the color of this stream. |
void |
setEncoding(String encoding)
Sets the character encoding used to interpret characters written to this steam. |
void |
setFontStyle(int newFontStyle)
Sets the font style to be used to decorate data written to this stream. |
void |
write(byte[] b)
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
void |
write(String str)
Writes a string to the attached console. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public int getFontStyle()
public void setFontStyle(int newFontStyle)
newFontStyle
- the font style to be used to decorate data written to this streampublic boolean isActivateOnWrite()
public void setActivateOnWrite(boolean activateOnWrite)
activateOnWrite
- whether the console this stream is writing to will be activated when this stream
is written to.public void setColor(Color newColor)
null
to indicate
the default color.
newColor
- color of this stream, or null
public Color getColor()
null
if default.
null
public boolean isClosed()
public void close() throws IOException
IOException
public void flush() throws IOException
IOException
public void write(byte[] b, int off, int len) throws IOException
IOException
public void write(byte[] b) throws IOException
IOException
public void write(int b) throws IOException
IOException
public void write(String str) throws IOException
str
- the string to write to the attached console.
IOException
- if the stream is closed.public void setEncoding(String encoding)
encoding
- endcoding identifier
|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.