org.apache.ftpserver.util
Class ClassUtils

java.lang.Object
  extended by org.apache.ftpserver.util.ClassUtils

public class ClassUtils
extends Object

Internal class, do not use directly.

Author:
Apache MINA Project *

Constructor Summary
ClassUtils()
           
 
Method Summary
static boolean extendsClass(Class<?> clazz, String className)
          Checks if a class is a subclass of a class with the specified name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassUtils

public ClassUtils()
Method Detail

extendsClass

public static boolean extendsClass(Class<?> clazz,
                                   String className)
Checks if a class is a subclass of a class with the specified name. Used as an instanceOf without having to load the class, useful when trying to check for classes that might not be available in the runtime JRE.

Parameters:
clazz - The class to check
className - The class name to look for in the super classes
Returns:
true if the class extends a class by the specified name.


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.