Refactoring

This commit is contained in:
Konloch 2022-02-13 14:36:50 -06:00
parent 1ee0fa0107
commit 4771a74787
1 changed files with 8 additions and 2 deletions

View File

@ -293,6 +293,14 @@ public class MiscUtils
}
}
public static Thread startNewThread(String threadName, Runnable threadRunnable)
{
Thread temporaryThread = new Thread(threadRunnable, threadName);
temporaryThread.start();
return temporaryThread;
}
public static String getChildFromPath(String path)
{
if (path != null && path.contains("/"))
@ -304,8 +312,6 @@ public class MiscUtils
return path;
}
/**
* Reads an InputStream and returns the read byte[]
*