Package me.syncwrld.booter
Class CommonPurposeClass
- java.lang.Object
-
- me.syncwrld.booter.CommonPurposeClass
-
- Direct Known Subclasses:
ApplicationLoader
,BukkitLoaderStrategy
,JdaApplicationLoaderStrategy
public class CommonPurposeClass extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CommonPurposeClass()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closeQuietly(java.io.InputStream inputStream)
boolean
createDir(java.lang.String path)
boolean
createFile(java.lang.String path)
boolean
currentOsEquals(OperatingSystem operatingSystem)
boolean
currentOsVersionEquals(java.lang.String version)
boolean
deleteDir(java.lang.String path)
boolean
deleteFile(java.lang.String path)
java.lang.String
formatPath(java.lang.String path)
java.lang.String
getJavaHome()
java.lang.String
getJavaVendor()
java.lang.String
getJavaVersion()
java.lang.String
getOs()
java.lang.String
getOsArch()
java.lang.String
getOsVersion()
java.io.OutputStream
getOutputStream(java.lang.String resource, java.lang.Class<?> clazz)
java.io.InputStream
getResource(java.lang.String resource, java.lang.Class<?> clazz)
boolean
saveFile(java.lang.String path, java.lang.String file, java.lang.Class<?> clazz)
-
-
-
Method Detail
-
getResource
public java.io.InputStream getResource(java.lang.String resource, java.lang.Class<?> clazz)
-
closeQuietly
public void closeQuietly(java.io.InputStream inputStream)
-
getOutputStream
public java.io.OutputStream getOutputStream(java.lang.String resource, java.lang.Class<?> clazz)
-
currentOsEquals
public boolean currentOsEquals(OperatingSystem operatingSystem)
-
currentOsVersionEquals
public boolean currentOsVersionEquals(java.lang.String version)
-
getOs
public java.lang.String getOs()
-
getOsVersion
public java.lang.String getOsVersion()
-
getOsArch
public java.lang.String getOsArch()
-
getJavaVersion
public java.lang.String getJavaVersion()
-
getJavaVendor
public java.lang.String getJavaVendor()
-
getJavaHome
public java.lang.String getJavaHome()
-
createDir
public boolean createDir(java.lang.String path)
-
deleteDir
public boolean deleteDir(java.lang.String path)
-
deleteFile
public boolean deleteFile(java.lang.String path)
-
createFile
public boolean createFile(java.lang.String path)
-
formatPath
public java.lang.String formatPath(java.lang.String path)
-
saveFile
public boolean saveFile(java.lang.String path, java.lang.String file, java.lang.Class<?> clazz)
-
-