Changeset 436 for trunk/icedtea-web/netx
- Timestamp:
- Oct 15, 2014, 10:44:36 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/icedtea-web/netx/net/sourceforge/jnlp/util/logging/JavaConsole.java
r427 r436 51 51 import java.io.File; 52 52 import java.io.FileInputStream; 53 import java.io.InputStream; 53 54 import java.io.InputStreamReader; 54 55 import java.nio.charset.Charset; … … 535 536 } 536 537 537 public void createPluginReader(final File file) {538 OutputController.getLogger().log("Starting processing of plugin-debug-to-console " + file.getAbsolutePath());538 public void createPluginReader(final InputStream inputstream) { 539 OutputController.getLogger().log("Starting processing of plugin-debug-to-console " + inputstream); 539 540 Thread t = new Thread(new Runnable() { 540 541 541 542 @Override 542 543 public void run() { 544 OutputController.getLogger().log("Started processing of plugin-debug-to-console " + inputstream); 543 545 BufferedReader br = null; 544 546 try { 545 br = new BufferedReader(new InputStreamReader( new FileInputStream(file),547 br = new BufferedReader(new InputStreamReader(inputstream, 546 548 Charset.forName("UTF-8"))); 547 549 //never ending loop … … 567 569 } 568 570 } 569 OutputController.getLogger().log("Ended processing of plugin-debug-to-console " + file.getAbsolutePath());571 OutputController.getLogger().log("Ended processing of plugin-debug-to-console " + inputstream); 570 572 } 571 573 }, "plugin-debug-to-console reader thread"); 572 574 t.setDaemon(true); 573 575 t.start(); 574 575 OutputController.getLogger().log("Started processing of plugin-debug-to-console " + file.getAbsolutePath()); 576 } 577 578 public void createPluginReader(final File file) { 579 OutputController.getLogger().log("Starting processing of plugin-debug-to-console " + file.getAbsolutePath()); 580 try { 581 createPluginReader(new FileInputStream(file)); 582 } catch (Exception ex) { 583 OutputController.getLogger().log(ex); 584 } 576 585 } 577 586 }
Note:
See TracChangeset
for help on using the changeset viewer.