ca.infoway.messagebuilder.j5goodies
Class ClassFileUtil
java.lang.Object
ca.infoway.messagebuilder.j5goodies.ClassFileUtil
public class ClassFileUtil
- extends Object
A utility to convert a file location (representing a Java source file) into a
class name.
- Author:
- Intelliware Development
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassFileUtil
public ClassFileUtil()
convertFileNameToClassName
public static String convertFileNameToClassName(String root,
File file)
Convert the file name into its corresponding Java class name.
- Parameters:
root
- - the file that represents the source treefile
- - the file that represents the Java source file.
- Returns:
- - the name of the Java class
convertFileNameToClassName
public static String convertFileNameToClassName(File root,
File file)
Copyright © 2013. All Rights Reserved.