public static void copy(String in,Writer out) throws IOException {
  Assert.notNull(in,"No input String specified");
  Assert.notNull(out,"No Writer specified");
  try {
    out.write(in);
  }
  finally {
    try {
      out.close();
    }
 catch (    IOException ex) {
    }
  }
}

public static void copy ( String in , Writer out ) throws IOException { Assert . notNull ( in , "No input String specified" ) ; Assert . notNull ( out , "No Writer specified" ) ; try { out . write ( in ) ; } finally { try { out . close ( ) ; } catch ( IOException ex ) { } } }
copy the contents of the given string to the given output writer . closes the writer when done .
