borland.jbcl Packages borland.jbcl Class Hierarchy borland.jbcl.io
java.lang.Object +----borland.jbcl.io.SimpleCharOutputStream +----borland.jbcl.io.EncodedOutputStream
Constructors Properties Methods
An implementation of SimpleCharOutputStream 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 EncodedOutputStream(java.io.OutputStream out)Creates output stream encoded in the default encoding.
Parameters:
public EncodedOutputStream(java.io.OutputStream out, java.lang.String encodingString)Creates output stream encoded in the specified encoding. Unicode characters passed in by for a write() will be converted to native, potentially multibyte, forms. Characters that cannot be encoded in the specified encoding will be represented in Unicode escapes.
Parameters:
public EncodedOutputStream(java.io.OutputStream out, java.lang.String encodingString, int bufferSize)Creates output stream encoded in the specified encoding and the specified buffer size. Currently this class does not do its own buffering -- the buffer size is ignored. Unicode characters passed in by for a write() will be converted to native, potentially multibyte, forms.
Parameters:
public void close()
Overrides: borland.jbcl.io.SimpleCharOutputStream.close()
public void flush()
public void write(int ch)Writes a char. This method will block until the byte is actually written.
write(int) throws an IOException if an I/O error has occured. The destination is encoded with the specified character set. Characters that cannot be encoded in the specified character set will be encode with Unicode escapes, like ?. Malformed (invalid in *any* encoding) Unicode characters will be converted to '?'.
Parameters:
Overrides: borland.jbcl.io.SimpleCharOutputStream.write(int)