Java EE 5 SDK

com.sun.appserv.management.util.misc
Class StringEscaper

java.lang.Object
  extended by com.sun.appserv.management.util.misc.StringEscaper

public final class StringEscaper
extends Object

Escapes/unescapes strings


Field Summary
static char BACKSLASH
           
static char ESCAPE_CHAR
           
static char NEWLINE
           
static char RETURN
           
static char SPACE
           
static char TAB
           
static char UNICODE_START
           
 
Constructor Summary
StringEscaper()
           
StringEscaper(char escapeChar, String charsToEscape)
           
StringEscaper(String charsToEscape)
           
 
Method Summary
 String escape(String s)
           
 String unescape(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BACKSLASH

public static final char BACKSLASH
See Also:
Constant Field Values

NEWLINE

public static final char NEWLINE
See Also:
Constant Field Values

RETURN

public static final char RETURN
See Also:
Constant Field Values

TAB

public static final char TAB
See Also:
Constant Field Values

SPACE

public static final char SPACE
See Also:
Constant Field Values

ESCAPE_CHAR

public static final char ESCAPE_CHAR
See Also:
Constant Field Values

UNICODE_START

public static final char UNICODE_START
See Also:
Constant Field Values
Constructor Detail

StringEscaper

public StringEscaper()

StringEscaper

public StringEscaper(String charsToEscape)

StringEscaper

public StringEscaper(char escapeChar,
                     String charsToEscape)
Method Detail

escape

public String escape(String s)

unescape

public String unescape(String s)

Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.