borland Packages Class Hierarchy jbcl.io Package Index
java.lang.Object +----java.io.Writer +----java.io.OutputStreamWriter +----borland.jbcl.io.JavaOutputStreamWriter
Variables Constructors Properties Methods
This class writes characters to an output stream, translating characters into bytes according to a specified character encoding. Characters that cannot be represented in the specified encoding are represented by Unicode escape sequences. This class supports encodings that are supported by the JDK in its java.io.OutputStreamWriter class.
public JavaOutputStreamWriter(java.io.OutputStream out)Creates a JavaOutputStreamWriter that uses the default character encoding.
Parameters:
public JavaOutputStreamWriter(java.io.OutputStream out, java.lang.String enc)Creates a JavaOutputStreamWriter that uses the named character encoding. This constructor throws a UnsupportedEncodingException if the named encoding is not supported. This class supports encodings that are supported by the JDK in its java.io.OutputStreamWriter class.
Parameters:
public String getEncoding()Returns the name of the encoding used by this stream. Returns null if the stream has been closed.
public void close()Closes the stream. This method throws an IOException if an I/O error occurs.
Overrides: java.io.OutputStreamWriter.close()
public void flush()Flushes the stream. This method throws an IOException if an I/O error occurs.
Overrides: java.io.OutputStreamWriter.flush()
public void write(char[] cbuf, int off, int len)Writes a portion of an array of characters. This method throws an IOException if an I/O error occurs.
Parameters:
Overrides: java.io.OutputStreamWriter.write(char[], int, int)
public void write(int c)Writes a single character. This method throws an IOException if an I/O error occurs.
Parameters:
Overrides: java.io.OutputStreamWriter.write(int)
public void write(java.lang.String str, int off, int len)Writes a portion of a string. This method throws an IOException if an I/O error occurs.
Parameters:
Overrides: java.io.OutputStreamWriter.write(String, int, int)