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 IOConsoleInputStream

java.lang.Object
  extended by 

java.io.InputStream
      extended by 
org.eclipse.ui.console.IOConsoleInputStream
All Implemented Interfaces:
Closeable

public class IOConsoleInputStream
extends InputStream

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
 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.
 
Methods inherited from class java.io. InputStream
mark, markSupported, reset, skip
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

read

public int read(byte[] b,
                int off,
                int len)
         throws 
IOException
Overrides:
read in class InputStream
Throws:
IOException

read

public int read(byte[] b)
         throws 
IOException
Overrides:
read in class InputStream
Throws:
IOException

read

public int read()
         throws 
IOException
Specified by:
read in class InputStream
Throws:
IOException

appendData

public void appendData(
String text)
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

public void setColor(
Color newColor)
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

public 
Color getColor()
Returns the color used to decorate input in the associated console

Returns:
the color used to decorate input in the associated console

available

public int available()
              throws 
IOException
Overrides:
available in class InputStream
Throws:
IOException

close

public void close()
           throws 
IOException
Specified by:
close in interface Closeable
Overrides:
close in class InputStream
Throws:
IOException

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