Asciidoctor mit Neon transformieren
ulrich
2021-07-03 1b0a18d44180a3c19ae9325bb599831708804c03
src/de/uhilger/httpserver/adoc/AdocActor.java
@@ -73,12 +73,6 @@
    logger.log(Level.FINE, "in: {0}", absname);
 
    // HTML-Datei ermitteln
    //String nameext = adocfile.getName();
    //String fname = nameext.substring(0, nameext.lastIndexOf(DOT));
    //File htmlfile = new File(adocfile.getParentFile(), fname + DOT + HTML);
    //File outfile = htmlfile; // Standardmaessig wird HTML zurueckgegeben
    //logger.fine("out: " + outfile.getAbsolutePath());
    //response.setCharacterEncoding("UTF-8");
    File outfile = getTargetFile(adocfile, HTML);
    File htmlfile = outfile;
    
@@ -105,17 +99,6 @@
        //response.setContentType("application/pdf");
        transform(absname, PDF);
      }
      //ServletOutputStream os = response.getOutputStream();
      //InputStream bytes = new FileInputStream(outfile);
      //int b = bytes.read();
      //while(b > -1 ) {
      //  os.write(b);
      //  b = bytes.read();
      //}
    } else {
      //PrintWriter out = response.getWriter();
      //InputStreamReader in = new InputStreamReader(new FileInputStream(outfile), "UTF-8");
      //in.transferTo(out);
    }
  }