com.atlassian.velocity
Class VelocityHelper
java.lang.Object
com.atlassian.velocity.VelocityHelper
public class VelocityHelper
- extends Object
A simple class store methods we want to expose to velocity templates
Method Summary |
static String |
encode(String str,
String encoding)
This function is needed when using JDK1.3 so has been copied from 1.4 to allow
older jdks to encode properly. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VelocityHelper
public VelocityHelper()
encode
public static String encode(String str,
String encoding)
throws UnsupportedEncodingException
- This function is needed when using JDK1.3 so has been copied from 1.4 to allow
older jdks to encode properly.
- Parameters:
str
- The String to be encodedencoding
- The encoding to use
- Returns:
- The encoded String
- Throws:
UnsupportedEncodingException