Utils.quotedString

Overview | Methods | This Package | All Packages

Utils.quotedString

Creates a string that contains the same value as the specified string and can be put into a compilable quoted string.

Syntax

public static String quotedString( char c )

public static String quotedString( String s )

public static String quotedString( String s, String quote )

Parameters

c

The character to quote.

s

The string to quote.

quote

The optional character to quote the string with. This character is placed before and after the contents of the resulting string.

Return Value

Returns the quoted string.

Remarks

A character will be placed before and after the contents of the resulting string.