borland Packages Class Hierarchy jbcl.io Package Index
java.lang.Object +----borland.jbcl.io.SimpleCharInputStream +----borland.jbcl.io.EncodedInputStream
Constructors Properties Methods
An implementation of SimpleCharInputStream that is optimized for data where most of the characters belong to the specified character set. Other characters are assumed to be encoded in Unicode escapes.
public EncodedInputStream(java.io.InputStream in)Creates a new buffered stream with the default encoding and with a default buffer size.
Parameters:
public EncodedInputStream(java.io.InputStream in, java.lang.String encoding)Creates a new buffered stream with the specified encoding and with a default buffer size.
Parameters:
public EncodedInputStream(java.io.InputStream in, java.lang.String encoding, int size)Creates a new buffered stream with the specified buffer size.
Parameters:
public void close()Closes the encoded 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)