@Override
    public void close() {
        try {
            out.close();
        } catch (IOException e) {
            throw new RuntimeException("Caught exception in Java writer.close.", e);
        }
    }
Wraps a simple java.lang.Writer. Of course you loose the possible optimizations.

@author baldersheim
vespajlib/src/main/java/com/yahoo/text/JavaWriterWriter.java