public static void writeDictionary ( NaaccrDictionary dictionary , Writer writer ) throws IOException { try { instanciateXStream ( ) . marshal ( dictionary , new NaaccrPrettyPrintWriter ( dictionary , writer ) ) ; } catch ( XStreamException ex ) { throw new IOException ( "Unable to write dictionary" , ex ) ; } }
Writes the given dictionary to the provided writer .