public void write(OutputStream out) throws IOException {
  BufferedWriter bw=new BufferedWriter(new OutputStreamWriter(out,"UTF8"));
  bw.write(HEADER_TITLE + "1.0\n");
  bw.write(PREF_PREFIX + " " + defaultPreference+ "\n\n");
  writeMap(completeNamePrefs,bw,"");
  writeMap(packagePrefs,bw,"/*");
  writeMap(namespacePrefs,bw,"/-");
  bw.flush();
}

public void write ( OutputStream out ) throws IOException { BufferedWriter bw = new BufferedWriter ( new OutputStreamWriter ( out , "UTF8" ) ) ; bw . write ( HEADER_TITLE + "1.0\n" ) ; bw . write ( PREF_PREFIX + " " + defaultPreference + "\n\n" ) ; writeMap ( completeNamePrefs , bw , "" ) ; writeMap ( packagePrefs , bw , "/*" ) ; writeMap ( namespacePrefs , bw , "/-" ) ; bw . flush ( ) ; }
write the preferences to the specified outputstream using the preference list syntax . preference expressions are written in the following order : complete name expressions package expressions namespace expressions
