public class Jdk14Compat extends JdkCompat
| Modifier | Constructor and Description |
|---|---|
protected |
Jdk14Compat()
Default no-arg constructor
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
String[] |
split(String path,
String pat)
Splits a string into it's components.
|
getJavaVersion, getJdkCompat, isJava14, isJava2public URL getURI(File file) throws MalformedURLException
getURI in class JdkCompatFile - to wrap into URIMalformedURLExceptionpublic long getMaxMemory()
getMaxMemory in class JdkCompatpublic String getPartialServletStackTrace(Throwable t)
getPartialServletStackTrace in class JdkCompatCopyright © 2005–2017 Oracle Corporation. All rights reserved.