flex.messaging.util
Class StringUtils

java.lang.Object
  extended by flex.messaging.util.StringUtils

public class StringUtils
extends Object


Field Summary
static String NEWLINE
          The String to use for an OS specific line separator.
 
Constructor Summary
StringUtils()
           
 
Method Summary
static boolean findMatchWithWildcard(char[] src, char[] pat)
           
static boolean isEmpty(String string)
          Returns true if a string is null or empty.
static String prettifyString(String string)
          Returns a prettified version of the string, or the original string if the operation is not possible.
static String prettifyXML(String xml)
          Returns a prettified version of the XML, with indentations and linefeeds.
static String substitute(String str, String from, String to)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NEWLINE

public static final String NEWLINE
The String to use for an OS specific line separator.

Constructor Detail

StringUtils

public StringUtils()
Method Detail

substitute

public static String substitute(String str,
                                String from,
                                String to)

findMatchWithWildcard

public static boolean findMatchWithWildcard(char[] src,
                                            char[] pat)

prettifyXML

public static String prettifyXML(String xml)
Returns a prettified version of the XML, with indentations and linefeeds. Returns the original string if there was an error.


prettifyString

public static String prettifyString(String string)
Returns a prettified version of the string, or the original string if the operation is not possible.


isEmpty

public static boolean isEmpty(String string)
Returns true if a string is null or empty.



Copyright © 2008 Adobe Systems Inc. All Rights Reserved.

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/blazeds/1/javadoc/flex/messaging/util/StringUtils.html