public static void write(String data, Writer output) throws IOException {
        if (data != null) {
            output.write(data);
        }
    }
Writes chars from a <code>String</code> to a <code>Writer</code>.

@param data   the <code>String</code> to write, null ignored
@param output the <code>Writer</code> to write to
@throws NullPointerException if output is null
@throws IOException          if an I/O error occurs
@since 1.1
pay-java-common/src/main/java/com/egzosn/pay/common/util/IOUtils.java