Skip to content
Snippets Groups Projects
Commit 528f432a authored by Branden's avatar Branden
Browse files

Added documentation to toString method

parent dc2fa652
No related branches found
No related tags found
2 merge requests!65Prototype,!48Feature detect program/launch application
...@@ -24,6 +24,11 @@ public class DetectProgram { ...@@ -24,6 +24,11 @@ public class DetectProgram {
return tasks.contains(Name); return tasks.contains(Name);
} }
/**
* used for isRunning method to format Inputsteam into usable format.
* @param input unformatted string from InputStream
* @return the formatted string.
*/
public static String toString(InputStream input){ public static String toString(InputStream input){
Scanner scan = new Scanner(input, "UTF-8").useDelimiter("\\A"); Scanner scan = new Scanner(input, "UTF-8").useDelimiter("\\A");
String output = scan.hasNext() ? scan.next() : ""; String output = scan.hasNext() ? scan.next() : "";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment