/**
 * Copyright © 2012 Joe Littlejohn
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.github.joelittlejohn.embedmongo.log;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;

import de.flapdoodle.embedmongo.io.IStreamProcessor;

public class FileOutputStreamProcessor implements IStreamProcessor {

    private static OutputStreamWriter stream;

    private synchronized void write(String text) {
        try {

            if (stream == null) {
                stream = new OutputStreamWriter(new FileOutputStream("embedmongo.log"), "utf-8");
            }

            stream.write(text);
            stream.flush();

        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }

    @Override
    public void process(String block) {
        write(block);
    }

    @Override
    public void onProcessed() {
        write("\n");
    }
}

@@ -917,23 +917,36 @@
 m;%0A%0A    
-private
+@Override%0A    public
  synchro
@@ -960,21 +960,23 @@
 oid 
-write
+process
 (String 
 text
@@ -971,20 +971,21 @@
 (String 
-text
+block
 ) %7B%0A    
@@ -1171,12 +1171,13 @@
 ite(
-text
+block
 );%0A 
@@ -1302,91 +1302,8 @@
  %7D%0A%0A
-    @Override%0A    public void process(String block) %7B%0A        write(block);%0A    %7D%0A%0A
     
@@ -1352,21 +1352,23 @@
         
-write
+process
 (%22%5Cn%22);%0A

Remove unnecessary method