borland Packages  Class Hierarchy  jb.io Package 

SimpleCharOutputStream class (abstract)

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

About the SimpleCharOutputStream class

Properties  Methods  

This abstract class provides subclasses with the ability to write complete strings, arbitrarily-delimited strings, and terminated lines.


SimpleCharOutputStream properties

*Read-only properties **Write-only properties

Properties implemented in java.lang.Object

SimpleCharOutputStream methods

Methods implemented in this class

Methods implemented in java.lang.Object


SimpleCharOutputStream methods

close()

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

write(int)

  public abstract void write(int ch)
Writes the value represented by ch to the output stream. On error, this method throws an IOException.

Parameters:

ch
The value to write to the output stream.

write(java.lang.String)

  public void write(String string)
Writes all the characters in the given string to the output stream. On error, this method throws an IOException.

Parameters:

string
The string to write to the output stream.

writeDelimited(java.lang.String, char)

  public void writeDelimited(String string, char delimiter)
Writes a string with the given delimiter. Each occurrance of the given delimiter is escaped by repeating the delimiter. On error, this method throws an IOException.

Parameters:

string
The string to write to the output stream.
delimiter
The delimiter to follow the string.

writeln()

  public void writeln()
Writes out a line delimiter. The line delimiter in this case is a fixed line-feed character, regardless of the line-terminating convention of the current environment. On error, this method throws an IOException.

writeln(java.lang.String)

  public void writeln(String string)
Writes the given string and follows it with a line feed. The line delimiter in this case is a fixed line-feed character, regardless of the line-terminating convention of the current environment. On error, this method throws an IOException.

Parameters:

string
The string to write to the output stream.