com.github.drinkjava2.jdbpro
Class TextUtils
java.lang.Object
com.github.drinkjava2.jdbpro.TextUtils
public abstract class TextUtils
- extends Object
TextUtils is used to read Java source file from sources folder, usage: String
src=TextUtils.getJavaSourceCode(Foo.class, "UTF-8"); To use this function
need copy java src file into resources folder or set a plug-in in pom.xml,
detail see jSqlBox's documents
- Author:
- Yong Zhu
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
javaFileCache
protected static final Map<String,String> javaFileCache
TextUtils
public TextUtils()
getJavaSourceCodeUTF8
public static String getJavaSourceCodeUTF8(Class<?> clazz)
getJavaSourceCodeUTF8
public static String getJavaSourceCodeUTF8(String classFullName)
getJavaSourceCode
public static String getJavaSourceCode(String classFullName,
String encoding)
getJavaSourceCode
public static String getJavaSourceCode(Class<?> clazz,
String encoding)
Copyright © 2018. All rights reserved.