Java java.io OutputStreamWriter fields, constructors, methods, implement or subclass

Example usage for Java java.io OutputStreamWriter fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.io OutputStreamWriter.

The text is from its open source code.

Subclass

java.io.OutputStreamWriter has subclasses.
Click this link to see all its subclasses.

Constructor

OutputStreamWriter(OutputStream out)
Creates an OutputStreamWriter that uses the default character encoding.
OutputStreamWriter(OutputStream out, String charsetName)
Creates an OutputStreamWriter that uses the named charset.
OutputStreamWriter(OutputStream out, Charset cs)
Creates an OutputStreamWriter that uses the given charset.
OutputStreamWriter(OutputStream out, CharsetEncoder enc)
Creates an OutputStreamWriter that uses the given charset encoder.

Method

Writerappend(CharSequence csq)
voidclose()
voidflush()
Flushes the stream.
StringgetEncoding()
Returns the name of the character encoding being used by this stream.
StringtoString()
Returns a string representation of the object.
voidwrite(int c)
Writes a single character.
voidwrite(char cbuf[], int off, int len)
Writes a portion of an array of characters.
voidwrite(String str, int off, int len)
Writes a portion of a string.