Public abstract class Java.io OutputStreamWriter extends Writer
Constructor | Description |
---|---|
OutputStreamWriter(OutputStream out) | The function of this constructor is to create the output stream writer instance. |
OutputStreamWriter(OutputStream out, Charset cs) | The function of this constructor is to create the output stream writer instance with specified charset. |
OutputStreamWriter(OutputStream out, String CharsetName ) | The function of this constructor is to create the output stream writer instance with specified name of charset. |
Method | Description |
---|---|
void close () | The function of this method is to close the present stream and associated to input stream systems resources are released. |
void flush () | The function of this method is to flush the specified output stream. |
void write (int c) | The function of this method is to write the represented character into output stream |
String getEncoding() | The function of this method is to get the name of encoded character which was used by this input stream. |
void write (Char[] cbuf, int off, int n) | By using this method it writes the data up to ‘n’ bytes from the output stream to an array of characters. |