public class

BasicHTMLEncoder

extends Object
implements ContentEncoder
java.lang.Object
   ↳ com.microstrategy.utils.BasicHTMLEncoder
Known Direct Subclasses

Class Overview

Class for performing an HTML encoding on the data.

Summary

Public Constructors
BasicHTMLEncoder()
BasicHTMLEncoder(boolean encodeSpaces)
Public Methods
StringBuilder encode(StringBuilder data)
Encode the value in the StringBuilder.
CharSequence encode(String data, boolean encodeSpaces)
CharSequence encode(String data)
This method should return the original String if there is no replacement.
boolean isEncodeSpacesAsNonBreaking()
void setEncodeSpacesAsNonBreaking(boolean encodeSpacesAsNonBreaking)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.microstrategy.utils.ContentEncoder

Public Constructors

public BasicHTMLEncoder ()

public BasicHTMLEncoder (boolean encodeSpaces)

Public Methods

public StringBuilder encode (StringBuilder data)

Encode the value in the StringBuilder.

Parameters
data - value to be encoded
Returns
  • encoded value

public CharSequence encode (String data, boolean encodeSpaces)

public CharSequence encode (String data)

This method should return the original String if there is no replacement.

Parameters
data - value to be encoded
Returns
  • encoded value

public boolean isEncodeSpacesAsNonBreaking ()

public void setEncodeSpacesAsNonBreaking (boolean encodeSpacesAsNonBreaking)