[Java] Class EncodingAwareBufferedWriter
- groovy.io.EncodingAwareBufferedWriter
public class EncodingAwareBufferedWriter extends BufferedWriter
A buffered writer only for OutputStreamWriter that is aware of the encoding of the OutputStreamWriter.
Constructor Summary
Constructor and description |
---|
EncodingAwareBufferedWriter
(OutputStreamWriter out) |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
public String |
getEncoding() The encoding as returned by the underlying OutputStreamWriter. | |
public String |
getNormalizedEncoding() The encoding as returned by the underlying OutputStreamWriter. |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class BufferedWriter | write, write, write, newLine, flush, close, append, append, append, append, append, append, write, write, nullWriter, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor Detail
public EncodingAwareBufferedWriter(OutputStreamWriter out)
Method Detail
public String getEncoding()
The encoding as returned by the underlying OutputStreamWriter. Can be the historical name.
- Returns:
- the encoding
- See Also:
- OutputStreamWriter.getEncoding
public String getNormalizedEncoding()
The encoding as returned by the underlying OutputStreamWriter. Will be the preferred name.
- Returns:
- the encoding
- See Also:
- OutputStreamWriter.getEncoding
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/groovy/io/EncodingAwareBufferedWriter.html