com.github.drinkjava2.jsqlbox
Class TextUtils

java.lang.Object
  extended by 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

Field Summary
protected static Map<String,String> javaFileCache
           
 
Constructor Summary
TextUtils()
           
 
Method Summary
static String getJavaSourceCode(Class<?> clazz, String encoding)
           
static String getJavaSourceCode(String classFullName, String encoding)
           
static String getJavaSourceCodeUTF8(Class<?> clazz)
           
static String getJavaSourceCodeUTF8(String classFullName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

javaFileCache

protected static final Map<String,String> javaFileCache
Constructor Detail

TextUtils

public TextUtils()
Method Detail

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.