org.apache.tomcat.util.compat
Class Jdk14Compat

java.lang.Object
  |
  +--org.apache.tomcat.util.compat.JdkCompat
        |
        +--org.apache.tomcat.util.compat.Jdk14Compat

public class Jdk14Compat
extends JdkCompat

See JdkCompat. This is an extension of that class for Jdk1.4 support.

Author:
Tim Funk

Field Summary
 
Fields inherited from class org.apache.tomcat.util.compat.JdkCompat
JAVA_1_0, JAVA_1_1, JAVA_1_2, JAVA_1_3, JAVA_1_4
 
Constructor Summary
protected Jdk14Compat()
          Default no-arg constructor
 
Method Summary
 long getMaxMemory()
          Return the maximum amount of memory the JVM will attempt to use.
 java.net.URL getURI(java.io.File file)
          Return the URI for the given file.
 
Methods inherited from class org.apache.tomcat.util.compat.JdkCompat
getJavaVersion, getJdkCompat, isJava14, isJava2
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Jdk14Compat

protected Jdk14Compat()
Default no-arg constructor

Method Detail

getURI

public java.net.URL getURI(java.io.File file)
                    throws java.net.MalformedURLException
Return the URI for the given file. Originally created for o.a.c.loader.WebappClassLoader

Overrides:
getURI in class JdkCompat
Returns:
A URI as a URL
java.net.MalformedURLException

getMaxMemory

public long getMaxMemory()
Return the maximum amount of memory the JVM will attempt to use.

Overrides:
getMaxMemory in class JdkCompat


Copyright © 2001 Apache Software Foundation. All Rights Reserved.