package droplauncher.util;

import adakite.util.AdakiteUtils;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.logging.Logger;
import javafx.scene.control.TextArea;

/**
 * Class for ignoring output from an input stream.
 */
public class StreamGobbler extends Thread {

  private static final Logger LOGGER = Logger.getLogger(StreamGobbler.class.getName());
  private static final boolean CLASS_DEBUG = (Constants.DEBUG && true);

  private InputStream is;
  private BufferedReader br;

  private TextArea txtLogWindow;

  private String streamName;

  private StreamGobbler() {}

  public StreamGobbler(String streamName, InputStream is, TextArea ta) {
    this.streamName = streamName;
    this.is = is;
    this.txtLogWindow = ta;
  }

  @Override
  public void run() {
    try {
      this.br = new BufferedReader(new InputStreamReader(this.is));
      String line;
      while ((line = this.br.readLine()) != null) {
        if (line.startsWith("fps: ")) {
          continue;
        }
        if (!AdakiteUtils.isNullOrEmpty(streamName)) {
          line = this.streamName + ": " + line;
        }
        if (this.txtLogWindow != null && this.txtLogWindow.isVisible()) {
          this.txtLogWindow.appendText(AdakiteUtils.NEWLINE + line);
        } else {
          System.out.println(line);
        }
      }
    } catch (Exception ex) {
      if (CLASS_DEBUG) {
        LOGGER.log(Constants.DEFAULT_LOG_LEVEL, null, ex);
      }
    }
  }

}
@@ -512,40 +512,19 @@
 am i
-s;%0A  private BufferedReader br;%0A
+nputStream;
 %0A  p
@@ -553,17 +553,16 @@
 Window;%0A
-%0A
   privat
@@ -668,17 +668,26 @@
 Stream i
-s
+nputStream
 , TextAr
@@ -690,16 +690,22 @@
 xtArea t
+extAre
 a) %7B%0A   
@@ -749,14 +749,32 @@
 is.i
-s = is
+nputStream = inputStream
 ;%0A  
@@ -796,16 +796,22 @@
 ndow = t
+extAre
 a;%0A  %7D%0A%0A
@@ -860,21 +860,31 @@
 %7B%0A      
-this.
+BufferedReader 
 br = new
@@ -927,17 +927,26 @@
 r(this.i
-s
+nputStream
 ));%0A    
@@ -981,21 +981,16 @@
 (line = 
-this.
 br.readL
@@ -1117,16 +1117,21 @@
 OrEmpty(
+this.
 streamNa
@@ -1312,28 +1312,22 @@
 ext(
-AdakiteUtils.NEWLINE
+Util.newline()
  + l

Update StreamGobbler.java