net.sf.jasperreports.engine.util
Class JRStringUtil

java.lang.Object
  extended by net.sf.jasperreports.engine.util.JRStringUtil

public class JRStringUtil
extends java.lang.Object

Version:
$Id: JRStringUtil.java 1681 2007-03-29 15:33:50Z teodord $
Author:
Teodor Danciu (teodord@users.sourceforge.net)

Constructor Summary
JRStringUtil()
           
 
Method Summary
static java.lang.String getLiteral(java.lang.String name)
          Takes a name and returns the same if it is a Java identifier; else it substitutes the illegal characters so that it can be an identifier
static java.lang.String htmlEncode(java.lang.String text)
           
static java.lang.String replaceDosEOL(java.lang.String text)
          Replaces DOS end of line (CRLF) with Unix end of line (LF).
static java.lang.String xmlEncode(java.lang.String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JRStringUtil

public JRStringUtil()
Method Detail

xmlEncode

public static java.lang.String xmlEncode(java.lang.String text)

htmlEncode

public static java.lang.String htmlEncode(java.lang.String text)

getLiteral

public static java.lang.String getLiteral(java.lang.String name)
Takes a name and returns the same if it is a Java identifier; else it substitutes the illegal characters so that it can be an identifier

Parameters:
name -

replaceDosEOL

public static java.lang.String replaceDosEOL(java.lang.String text)
Replaces DOS end of line (CRLF) with Unix end of line (LF).

Parameters:
text - the text
Returns:
the text with CRLF replaced by LF; if no CRLF was found, the same object is returned.


© 2001-2006 JasperSoft Corporation www.jaspersoft.com