Top Description Fields Constructors Methods
groovy.io

public Class EncodingAwareBufferedWriter

extends BufferedWriter
Class Inheritance
Imports
java.io.BufferedWriter, .OutputStreamWriter, java.nio.charset.Charset

A buffered writer only for OutputStreamWriter that is aware of the encoding of the OutputStreamWriter.

Field Summary

Modifier and TypeField and Description
private final OutputStreamWriter

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the encoding
getEncoding
()

The encoding as returned by the underlying OutputStreamWriter.

public String

Returns:

the encoding
getNormalizedEncoding
()

The encoding as returned by the underlying OutputStreamWriter.

Inherited from java.io.BufferedWriter:
closeflushnewLinewritewritewrite

Field Detail

outback to summary
private final OutputStreamWriter out

Hides java.io.BufferedWriter.out.

Constructor Detail

EncodingAwareBufferedWriterback to summary
public EncodingAwareBufferedWriter(OutputStreamWriter out)

Method Detail

getEncodingback to summary
public String getEncoding()

The encoding as returned by the underlying OutputStreamWriter. Can be the historical name.

Returns:String

the encoding

See Also
java.io.OutputStreamWriter#getEncoding()
getNormalizedEncodingback to summary
public String getNormalizedEncoding()

The encoding as returned by the underlying OutputStreamWriter. Will be the preferred name.

Returns:String

the encoding

See Also
java.io.OutputStreamWriter#getEncoding()