com.atlassian.velocity
Class VelocityHelper

java.lang.Object
  extended by com.atlassian.velocity.VelocityHelper

public class VelocityHelper
extends Object

A simple class store methods we want to expose to velocity templates


Constructor Summary
VelocityHelper()
           
 
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
 

Constructor Detail

VelocityHelper

public VelocityHelper()
Method Detail

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 encoded
encoding - The encoding to use
Returns:
The encoded String
Throws:
UnsupportedEncodingException


Atlassian Velocity is developed by Atlassian Software Systems.