public class JdkCompat extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JAVA_1_0 |
static String |
JAVA_1_1 |
static String |
JAVA_1_2 |
static String |
JAVA_1_3 |
static String |
JAVA_1_4 |
| Modifier | Constructor and Description |
|---|---|
protected |
JdkCompat()
Default no-arg constructor
|
| Modifier and Type | Method and Description |
|---|---|
static String |
getJavaVersion()
Return java version as a string
|
static JdkCompat |
getJdkCompat()
Get a compatibiliy helper class.
|
long |
getMaxMemory()
Return the maximum amount of memory the JVM will attempt to use.
|
String |
getPartialServletStackTrace(Throwable t)
Print out a partial servlet stack trace (truncating at the last
occurrence of javax.servlet.).
|
URL |
getURI(File file)
Return the URI for the given file.
|
static boolean |
isJava14() |
static boolean |
isJava2() |
String[] |
split(String path,
String pat)
Splits a string into it's components.
|
public static final String JAVA_1_0
public static final String JAVA_1_1
public static final String JAVA_1_2
public static final String JAVA_1_3
public static final String JAVA_1_4
public static String getJavaVersion()
public static boolean isJava2()
public static boolean isJava14()
public static JdkCompat getJdkCompat()
public URL getURI(File file) throws MalformedURLException
File - to wrap into URIMalformedURLExceptionpublic long getMaxMemory()
public String getPartialServletStackTrace(Throwable t)
Copyright © 2005–2017 Oracle Corporation. All rights reserved.