| |
|
| java.lang.Object org.apache.tomcat.util.compat.JdkCompat
All known Subclasses: org.apache.tomcat.util.compat.Jdk14Compat,
JdkCompat | public class JdkCompat (Code) | | General-purpose utility to provide backward-compatibility and JDK
independence. This allow use of JDK1.3 ( or higher ) facilities if
available, while maintaining the code compatible with older VMs.
The goal is to make backward-compatiblity reasonably easy.
The base class supports JDK1.3 behavior.
author: Tim Funk |
JAVA14_SUPPORT | final static String JAVA14_SUPPORT(Code) | | class providing java2 support
|
java14 | static boolean java14(Code) | | |
java15 | static boolean java15(Code) | | |
java2 | static boolean java2(Code) | | |
logger | static Log logger(Code) | | Commons logger wrapper
|
JdkCompat | protected JdkCompat()(Code) | | Default no-arg constructor
|
chainException | public void chainException(Throwable wrapper, Throwable wrapped)(Code) | | Chains the wrapped throwable to the wrapper throwable.
Parameters: wrapper - The wrapper throwable Parameters: wrapped - The throwable to be wrapped |
getJavaVersion | public static String getJavaVersion()(Code) | | Return java version as a string
|
getJdkCompat | public static JdkCompat getJdkCompat()(Code) | | Get a compatibiliy helper class.
|
getMaxMemory | public long getMaxMemory()(Code) | | Return the maximum amount of memory the JVM will attempt to use.
|
getPartialServletStackTrace | public String getPartialServletStackTrace(Throwable t)(Code) | | Print out a partial servlet stack trace (truncating at the last
occurrence of javax.servlet.).
|
getURI | public URL getURI(File file) throws MalformedURLException(Code) | | Return the URI for the given file. Originally created for
o.a.c.loader.WebappClassLoader
Parameters: File - to wrap into URI A URI as a URL |
isJava14 | public static boolean isJava14()(Code) | | |
isJava15 | public static boolean isJava15()(Code) | | |
isJava2 | public static boolean isJava2()(Code) | | |
split | public String[] split(String path, String pat)(Code) | | Splits a string into it's components.
Parameters: path - String to split Parameters: pat - Pattern to split at the components of the path |
|
|
|