src/share/classes/com/sun/tools/doclets/internal/toolkit/util/Util.java

changeset 1364
8db45b13526e
parent 1360
560d4a5d14e6
child 1372
78962d89f283
equal deleted inserted replaced
1363:0d1818e9d4ae 1364:8db45b13526e
648 path + File.separator: "") + filename); 648 path + File.separator: "") + filename);
649 } else { 649 } else {
650 fos = new FileOutputStream(filename); 650 fos = new FileOutputStream(filename);
651 } 651 }
652 if (docencoding == null) { 652 if (docencoding == null) {
653 return new OutputStreamWriter(fos); 653 return new BufferedWriter(new OutputStreamWriter(fos));
654 } else { 654 } else {
655 return new OutputStreamWriter(fos, docencoding); 655 return new BufferedWriter(new OutputStreamWriter(fos, docencoding));
656 } 656 }
657 } 657 }
658 658
659 /** 659 /**
660 * Given an annotation, return true if it should be documented and false 660 * Given an annotation, return true if it should be documented and false

mercurial