org.pentaho.reporting.libraries.formula.function.text
Class URLEncodeFunction

java.lang.Object
  extended by org.pentaho.reporting.libraries.formula.function.text.URLEncodeFunction
All Implemented Interfaces:
Serializable, Function

public class URLEncodeFunction
extends Object
implements Function

This function encodes a given text using the URL-Encoding schema. An optional second parameter can be given to specify the character encoding that should be used when converting text to bytes.

Author:
Cedric Pronzato
See Also:
Serialized Form

Constructor Summary
URLEncodeFunction()
           
 
Method Summary
 TypeValuePair evaluate(FormulaContext context, ParameterCallback parameters)
           
 String getCanonicalName()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLEncodeFunction

public URLEncodeFunction()
Method Detail

evaluate

public TypeValuePair evaluate(FormulaContext context,
                              ParameterCallback parameters)
                       throws EvaluationException
Specified by:
evaluate in interface Function
Throws:
EvaluationException

getCanonicalName

public String getCanonicalName()
Specified by:
getCanonicalName in interface Function