Пример #1
0
 public void writeDocument(OutputStream out, String dtdName, String encoding) throws IOException {
   if (encoding != null) {
     writeDocumentImpl(
         new BufferedWriter(new OutputStreamWriter(out, encoding)), dtdName, encoding);
   } else {
     writeDocumentImpl(new BufferedWriter(new OutputStreamWriter(out)), dtdName, encoding);
   }
 }
Пример #2
0
 public void writeDocument(Writer w, String dtdName, String encoding) throws IOException {
   writeDocumentImpl(w, dtdName, encoding);
 }