public class IOConsoleInputStream extends InputStream
Clients are not intended to instantiate this class directly, instead
use IOConsole.getInputStream(). Clients are not intended
to subclass this class.
| Modifier and Type | Method and Description |
|---|---|
void |
appendData(String text)
Appends text to this input stream's buffer.
|
int |
available() |
void |
close() |
Color |
getColor()
Returns the color used to decorate input in the associated console
|
int |
getFontStyle()
Returns this stream's font style.
|
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
setColor(Color newColor)
Sets the color to used to decorate input in the associated console.
|
void |
setFontStyle(int newFontStyle)
Sets this stream's font style.
|
mark, markSupported, reset, skippublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic void appendData(String text)
text - the text to append to the buffer.public int getFontStyle()
public void setFontStyle(int newFontStyle)
newFontStyle - the font style to be used to decorate input in the associated consolepublic void setColor(Color newColor)
newColor - the color to used to decorate input in the associated console.public Color getColor()
public int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.