borland Packages Class Hierarchy jbcl.io Package Index
java.lang.Object +----borland.jbcl.io.SimpleCharInputStream +----borland.jbcl.io.AsciiInputStream
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.
public AsciiInputStream(java.io.InputStream in)Creates a new buffered stream with a default buffer size.
Parameters:
public AsciiInputStream(java.io.InputStream in, int size)Creates a new buffered stream with the specified buffer size.
Parameters:
public void close()Closes the input stream. Should be the last operation done with this object.
Overrides: borland.jbcl.io.SimpleCharInputStream.close()
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()
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)