org.pentaho.reporting.engine.classic.core.modules.output.table.html.util
Class HtmlEncoderUtil

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.modules.output.table.html.util.HtmlEncoderUtil

public final class HtmlEncoderUtil
extends Object

Utility methods to support HTML style encodings like the UTF and CSS encodings.

Author:
Thomas Morgner

Method Summary
static String encodeCSS(String s)
          Encode a string to the encoded form as defined in the CSS standard.
static String encodeCSS(String s, StringBuffer sbuf)
           
static void encodeCSS(String s, Writer w)
          Deprecated.  
static void printText(PrintWriter pout, String text, boolean useXHTML)
          Deprecated. This method is not used anywhere and therefore it will be removed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

encodeCSS

public static String encodeCSS(String s)
Encode a string to the encoded form as defined in the CSS standard.

Parameters:
s - The string to be encoded
Returns:
The encoded string

encodeCSS

public static String encodeCSS(String s,
                               StringBuffer sbuf)

encodeCSS

public static void encodeCSS(String s,
                             Writer w)
                      throws IOException
Deprecated. 

Encode a string to the encoded form as defined in the CSS standard.

Parameters:
s - The string to be encoded
w - the writer that receives the generated text.
Throws:
IOException - if an error occured.

printText

public static void printText(PrintWriter pout,
                             String text,
                             boolean useXHTML)
Deprecated. This method is not used anywhere and therefore it will be removed.

Generates the HTML output for printing the given text.

Parameters:
pout - the target writer
text - the text that should be printed.
useXHTML - true, if XHTML is generated, false otherwise.