public void init()

in src/main/java/org/apache/sling/rewriter/impl/components/XMLSerializerFactory.java [55:68]


        public void init(ProcessingContext context,
                         ProcessingComponentConfiguration config)
        throws IOException {
            final String encoding = config.getConfiguration().get("encoding", "UTF-8");
            try {
                this.setEncoding(encoding);
            } catch (UnsupportedEncodingException exception) {
                throw new IOException("Encoding not supported: " + encoding);
            }
            setIndentPerLevel(config.getConfiguration().get("indent", 0));

            this.setup(context.getRequest());
            this.setOutputStream(context.getOutputStream());
        }