| java.lang.Object java.io.Writer org.mmbase.util.EncodingDetectingOutputStreamWriter
EncodingDetectingOutputStreamWriter | public class EncodingDetectingOutputStreamWriter extends Writer (Code) | | Like
java.io.OutputStreamWriter but it tries to autodetect the encoding of the
OutputStream. This works at least if the OutputStream is XML, which is a very common thing to be for Resources.
For this to work at least the first part (e.g. the first 100 bytes) need to be buffered.
If determining the encoding did not succeed it is supposed to be 'UTF-8', which is (should be) an
acceptable encoding, and also the default encoding for XML streams.
author: Michiel Meeuwissen since: MMBase-1.8 version: $Id: EncodingDetectingOutputStreamWriter.java,v 1.3 2007/12/06 08:20:09 michiel Exp $ |
EncodingDetectingOutputStreamWriter | EncodingDetectingOutputStreamWriter(OutputStream os)(Code) | | |
|
|