borland Packages  Class Hierarchy  jb.io Package 

AsciiOutputStream class

java.lang.Object
   +----com.borland.jb.io.SimpleCharOutputStream
           +----com.borland.jb.io.AsciiOutputStream

About the AsciiOutputStream class

Constructors  Properties  Methods  

An implementation of SimpleCharOutputStream 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.

Under Western European versions of Windows, including the United States version, the javac compiler assumes the encoding of 8859_1, even though the actual encoding should be Cp1252. Cp1252 contains some characters that are not in 8859_1. If your source file contains these additional characters, they will not be correctly interpreted. In this case, you should specify Cp1252 as the encoding.


AsciiOutputStream constructors

AsciiOutputStream properties

*Read-only properties **Write-only properties

Properties implemented in java.lang.Object

AsciiOutputStream methods

Methods implemented in this class

Methods implemented in com.borland.jb.io.SimpleCharOutputStream

Methods implemented in java.lang.Object


AsciiOutputStream constructors

AsciiOutputStream(java.io.OutputStream)

  public AsciiOutputStream(OutputStream out)
Creates a new buffered stream with a default buffer size of 2048 characters.

Parameters:

out
The output stream.

AsciiOutputStream(java.io.OutputStream, int)

  public AsciiOutputStream(OutputStream out, int bufferLength)
Creates a new buffered stream with the specified buffer size.

Parameters:

out
The output stream.
bufferLength
The buffer size.

AsciiOutputStream methods

close()

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

Overrides: com.borland.jb.io.SimpleCharOutputStream.close()

flush()

  public void flush()
Causes all currently buffered information to be written to the output stream.

write(int)

  public void write(int ch)
Writes the specified character. This method will block until the character is actually written.

If an I/O error occurrs, write(int) throws an IOException.

Parameters:

ch
The character to be written.

Overrides: com.borland.jb.io.SimpleCharOutputStream.write(int)