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