Package groovy.io
Class EncodingAwareBufferedWriter
- java.lang.Object
 - 
- java.io.Writer
 - 
- java.io.BufferedWriter
 - 
- groovy.io.EncodingAwareBufferedWriter
 
 
 
 
- 
- All Implemented Interfaces:
 java.io.Closeable,java.io.Flushable,java.lang.Appendable,java.lang.AutoCloseable
public class EncodingAwareBufferedWriter extends java.io.BufferedWriterA buffered writer only for OutputStreamWriter that is aware of the encoding of the OutputStreamWriter. 
- 
- 
Constructor Summary
Constructors Constructor Description EncodingAwareBufferedWriter(java.io.OutputStreamWriter out) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetEncoding()The encoding as returned by the underlying OutputStreamWriter.java.lang.StringgetNormalizedEncoding()The encoding as returned by the underlying OutputStreamWriter. 
 - 
 
- 
- 
Method Detail
- 
getEncoding
public java.lang.String getEncoding()
The encoding as returned by the underlying OutputStreamWriter. Can be the historical name.- Returns:
 - the encoding
 - See Also:
 OutputStreamWriter.getEncoding()
 
- 
getNormalizedEncoding
public java.lang.String getNormalizedEncoding()
The encoding as returned by the underlying OutputStreamWriter. Will be the preferred name.- Returns:
 - the encoding
 - See Also:
 OutputStreamWriter.getEncoding()
 
 - 
 
 -