org.apache.tomcat.util.compat
Class Jdk14Compat
See JdkCompat. This is an extension of that class for Jdk1.4 support.
- Tim Funk
- Remy Maucherat
void | chainException(Throwable wrapper, Throwable wrapped) - Chains the wrapped throwable to the wrapper throwable.
|
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.
|
Jdk14Compat
protected Jdk14Compat()
Default no-arg constructor
chainException
public void chainException(Throwable wrapper,
Throwable wrapped)
Chains the wrapped throwable to the wrapper throwable.
- chainException in interface JdkCompat
wrapper
- The wrapper throwablewrapped
- The throwable to be wrapped
getMaxMemory
public long getMaxMemory()
Return the maximum amount of memory the JVM will attempt to use.
- getMaxMemory in interface JdkCompat
getPartialServletStackTrace
public String getPartialServletStackTrace(Throwable t)
Print out a partial servlet stack trace (truncating at the last
occurrence of javax.servlet.).
- getPartialServletStackTrace in interface JdkCompat
getURI
public URL getURI(File file)
throws MalformedURLException
Return the URI for the given file. Originally created for
o.a.c.loader.WebappClassLoader
- getURI in interface JdkCompat
- A URI as a URL
split
public String[] split(String path,
String pat)
Splits a string into it's components.
- split in interface JdkCompat
path
- String to splitpat
- Pattern to split at
- the components of the path
Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.