TechnionNLI-master/lib/ojavalib/src/main/java/com/ofergivoli/ojavalib/io/WriterUtils.java
package com.ofergivoli.ojavalib.io;

import java.io.IOException;
import java.io.UncheckedIOException;
import java.io.Writer;


public class WriterUtils {

    /**
     * A simple wrapper to writer.write(), throwing only unchecked exceptions.
     */
    public static void write(Writer writer, String str) {
        try {
            writer.write(str);
        } catch (IOException e) {
            throw new UncheckedIOException(e);
        }
    }

}
