Skip to content
Snippets Groups Projects
Commit 9d644fa6 authored by Branden's avatar Branden
Browse files

Created toString method

parent f8b57f69
No related branches found
No related tags found
2 merge requests!65Prototype,!48Feature detect program/launch application
......@@ -15,4 +15,12 @@ public class DetectProgram {
return true;
}
public static String toString(InputStream input){
Scanner scan = new Scanner(input, "UTF-8").useDelimiter("\\A");
String output = scan.hasNext() ? scan.next() : "";
scan.close();
return output;
}
}
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