public class TextUtils
extends java.lang.Object
| Constructor and Description |
|---|
TextUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getText(org.w3c.dom.Element elm)
Get the text of an element.
|
static java.lang.String |
readText(java.lang.String input)
This function reads from the file/resource using the default class loader for
CookXml.
|
static java.lang.String |
readText(java.lang.String input,
java.lang.ClassLoader classLoader)
This function reads from the file/resource using the ClassLoader provided.
|
public static java.lang.String readText(java.lang.String input,
java.lang.ClassLoader classLoader)
throws java.io.IOException
input - the input file/resource locationclassLoader - the ClassLoader that is used to locate the resourcejava.io.IOException - in case of error.ClassLoaderpublic static java.lang.String readText(java.lang.String input)
throws java.io.IOException
input - the input file/resource locationjava.io.IOException - in case of error.CookXml.getDefaultClassLoader()public static java.lang.String getText(org.w3c.dom.Element elm)
elm - the element that contains the text.