public static void string2Writer ( String source , Writer out ) throws IOException { char [ ] buffer = source . toCharArray ( ) ; for ( int i = 0 ; i < buffer . length ; i ++ ) { out . append ( buffer [ i ] ) ; } out . flush ( ) ; }
String 2 writer .