Package com.microstrategy.utils
Class ScriptVariableJSONEncoder
- java.lang.Object
-
- com.microstrategy.utils.ScriptVariableJSONEncoder
-
- All Implemented Interfaces:
ContentEncoder
public class ScriptVariableJSONEncoder extends java.lang.Object implements ContentEncoder
- Since:
- MicroStrategy Web 9.0.1
-
-
Constructor Summary
Constructors Constructor Description ScriptVariableJSONEncoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.CharSequence
decode(java.lang.String data)
Removes special encoding added to protect against string end tags being embedded in user-supplied datajava.lang.CharSequence
encode(java.lang.String data)
This method should return the original String if there is no replacement.java.lang.CharSequence
encode(java.lang.StringBuilder data)
Encode the value in the StringBuilder.
-
-
-
Method Detail
-
encode
public java.lang.CharSequence encode(java.lang.String data)
Description copied from interface:ContentEncoder
This method should return the original String if there is no replacement.- Specified by:
encode
in interfaceContentEncoder
- Parameters:
data
- - value to be encoded- Returns:
- encoded value
-
encode
public java.lang.CharSequence encode(java.lang.StringBuilder data)
Description copied from interface:ContentEncoder
Encode the value in the StringBuilder.- Specified by:
encode
in interfaceContentEncoder
- Parameters:
data
- - value to be encoded- Returns:
- encoded value
-
decode
public java.lang.CharSequence decode(java.lang.String data)
Removes special encoding added to protect against string end tags being embedded in user-supplied data- Parameters:
data
-- Returns:
-
-