[Java] Class EncodingAwareBufferedWriter
- groovy.io.EncodingAwareBufferedWriter
A buffered writer only for OutputStreamWriter that is aware of the encoding of the OutputStreamWriter.
- Authors:
- Paul King
Constructor Summary
Constructor and description |
---|
EncodingAwareBufferedWriter
(OutputStreamWriter out) |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
String |
getEncoding() The encoding as returned by the underlying OutputStreamWriter. | |
String |
getNormalizedEncoding() The encoding as returned by the underlying OutputStreamWriter. |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class BufferedWriter | write, write, write, close, flush, newLine, append, append, append, append, append, append, write, write, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
class Writer | append, append, append, append, append, append, write, write, write, write, write, close, flush, 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/2.4.21/html/gapi/groovy/io/EncodingAwareBufferedWriter.html