borland Packages  Class Hierarchy  jbcl.io Package  Index 

SimpleCharInputStream class (abstract)

java.lang.Object
   +----borland.jbcl.io.SimpleCharInputStream
           +----borland.jbcl.io.AsciiInputStream
           +----borland.jbcl.io.EncodedInputStream

About the SimpleCharInputStream class

Properties  Methods  

This abstract class provides the capability of reading input one line at a time. This class is used by AsciiEncodedInputStream and AsciiEncodedOutputStream classes.


SimpleCharInputStream properties

*Read-only properties **Write-only properties

Properties implemented in java.lang.Object

SimpleCharInputStream methods

Methods implemented in this class

Methods implemented in java.lang.Object


SimpleCharInputStream methods

close()

  public abstract void close()
Closes the input stream. Should be the last operation done with this object. On error, this method throws an IOExeption.

read()

  public abstract int read()
Reads a byte of data. This method will block if no input is available. This method returns the byte read, or -1 if the end of the stream is reached. If an I/O error occurs, this method throws an IOException.

readLine()

  public String readLine()
Reads a complete line of text, which is defined as a line terminated with a line-feed character or with a carriage-return/linefeed pair. Carriage returns that are not immediately followed by a linefeed character are not treated as line terminators but as part of the current line. On error this method throws an IOExeption.

unread(int)

  public abstract void unread(int ch)
"Pushes" the given character back into the input buffer so the next read() will return it. On error this method throws an IOExeption.