Package org.eclipse.ui.console
Class IOConsoleInputStream
java.lang.Object
java.io.InputStream
org.eclipse.ui.console.IOConsoleInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
InputStream used to read input from an
IOConsole
.
This stream will buffer input that it receives until it has been read.
An input stream is available from its IOConsole
.- Since:
- 3.1
- Restriction:
- This class is not intended to be subclassed by clients.
- Restriction:
- This class is not intended to be instantiated by clients.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
appendData
(String text) Appends text to this input stream's buffer.int
void
close()
getColor()
Returns the color used to decorate input in the associated consoleint
Returns this stream's font style.int
read()
int
read
(byte[] b) int
read
(byte[] b, int off, int len) void
Sets the color to used to decorate input in the associated console.void
setFontStyle
(int newFontStyle) Sets this stream's font style.Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Method Details
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
appendData
Appends text to this input stream's buffer.- Parameters:
text
- the text to append to the buffer.
-
getFontStyle
public int getFontStyle()Returns this stream's font style.- Returns:
- the font style used to decorate input in the associated console
-
setFontStyle
public void setFontStyle(int newFontStyle) Sets this stream's font style.- Parameters:
newFontStyle
- the font style to be used to decorate input in the associated console
-
setColor
Sets the color to used to decorate input in the associated console.- Parameters:
newColor
- the color to used to decorate input in the associated console.
-
getColor
Returns the color used to decorate input in the associated console- Returns:
- the color used to decorate input in the associated console
-
available
- Overrides:
available
in classInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-