|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcookxml.core.util.TextUtils
public class TextUtils
Useful functions dealing with texts.
| Constructor Summary | |
|---|---|
TextUtils()
|
|
| Method Summary | |
|---|---|
static String |
getText(Element elm)
Get the text of an element. |
static String |
readText(String input)
This function reads from the file/resource using the default class loader for CookXml. |
static String |
readText(String input,
ClassLoader classLoader)
This function reads from the file/resource using the ClassLoader provided. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextUtils()
| Method Detail |
|---|
public static String readText(String input,
ClassLoader classLoader)
throws IOException
input - the input file/resource locationclassLoader - the ClassLoader that is used to locate the resource
IOException - in case of error.ClassLoader
public static String readText(String input)
throws IOException
input - the input file/resource location
IOException - in case of error.CookXml.getDefaultClassLoader()public static String getText(Element elm)
elm - the element that contains the text.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||