com.github.drinkjava2.jsqlbox
Class TextUtils
java.lang.Object
com.github.drinkjava2.jsqlbox.TextUtils
public abstract class TextUtils
- extends Object
TextUtils is used to read Java source file from sources folder, usuage:
String src=TextUtils.getJavaSourceCode(Foo.class, "UTF-8"); To use this
function need copy java src file into resources folder or set a plugin in
pom.xml, detail see jSqlBox 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.