borland Packages  Class Hierarchy  jbcl.io Package  Index 

AsciiInputStream class

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

About the AsciiInputStream class

Constructors  Properties  Methods  

An implementation of SimpleCharInputStream that is optimized for data where most of the characters belong to either the ASCII character set or the 8859_1 character set. Other characters are assumed to be encoded in Unicode escapes.


AsciiInputStream constructors

AsciiInputStream properties

*Read-only properties **Write-only properties

Properties implemented in java.lang.Object

AsciiInputStream methods

Methods implemented in this class

Methods implemented in borland.jbcl.io.SimpleCharInputStream

Methods implemented in java.lang.Object


AsciiInputStream constructors

AsciiInputStream(java.io.InputStream)

  public AsciiInputStream(java.io.InputStream in)
Creates a new buffered stream with a default buffer size.

Parameters:

in
The input stream.

AsciiInputStream(java.io.InputStream, int)

  public AsciiInputStream(java.io.InputStream in, int size)
Creates a new buffered stream with the specified buffer size.

Parameters:

in
The input stream.
size
The buffer size.

AsciiInputStream methods

close()

  public void close()
Closes the input stream. Should be the last operation done with this object.

Overrides: borland.jbcl.io.SimpleCharInputStream.close()

read()

  public 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 occurrs, read() throws an IOException.

Overrides: borland.jbcl.io.SimpleCharInputStream.read()

unread(int)

  public void unread(int undoChar)
"Pushes" the given character back into the input buffer so the next read() will return it.

Overrides: borland.jbcl.io.SimpleCharInputStream.unread(int)