private void writeKanjiResourceFile(File file) throws IOException {
  FileOutputStream output=null;
  KanjiEscapeOutputStream kanji=null;
  OutputStreamWriter writer=null;
  BufferedWriter w=null;
  try {
    output=new FileOutputStream(file);
    kanji=new KanjiEscapeOutputStream(output);
    writer=new OutputStreamWriter(kanji);
    w=new BufferedWriter(writer);
    w.write(_sb.toString());
  }
  finally {
    Util.close(w);
    Util.close(writer);
    Util.close(kanji);
    Util.close(output);
  }
}

private void writeKanjiResourceFile ( File file ) throws IOException { FileOutputStream output = null ; KanjiEscapeOutputStream kanji = null ; OutputStreamWriter writer = null ; BufferedWriter w = null ; try { output = new FileOutputStream ( file ) ; kanji = new KanjiEscapeOutputStream ( output ) ; writer = new OutputStreamWriter ( kanji ) ; w = new BufferedWriter ( writer ) ; w . write ( _sb . toString ( ) ) ; } finally { Util . close ( w ) ; Util . close ( writer ) ; Util . close ( kanji ) ; Util . close ( output ) ; } }
handle japanese encoding - by toshimm .
