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.BufferedWriter
A buffered writer only for OutputStreamWriter that is aware of
 the encoding of the OutputStreamWriter.
- 
Field SummaryFields inherited from class java.io.Writerlock
- 
Constructor SummaryConstructors Constructor Description EncodingAwareBufferedWriter(java.io.OutputStreamWriter out)
- 
Method SummaryModifier 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.Methods inherited from class java.io.BufferedWriterclose, flush, newLine, write, write, writeMethods inherited from class java.io.Writerappend, append, append, nullWriter, write, writeMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- 
Constructor Details- 
EncodingAwareBufferedWriterpublic EncodingAwareBufferedWriter(java.io.OutputStreamWriter out)
 
- 
- 
Method Details- 
getEncodingpublic java.lang.String getEncoding()The encoding as returned by the underlying OutputStreamWriter. Can be the historical name.- Returns:
- the encoding
- See Also:
- OutputStreamWriter.getEncoding()
 
- 
getNormalizedEncodingpublic java.lang.String getNormalizedEncoding()The encoding as returned by the underlying OutputStreamWriter. Will be the preferred name.- Returns:
- the encoding
- See Also:
- OutputStreamWriter.getEncoding()
 
 
-