laser.util
Class StringConversions

java.lang.Object
  extended by laser.util.StringConversions

public class StringConversions
extends java.lang.Object

This class provides several string conversion routines that are commonly used.

Version:
1.0 ( November 6, 1998 )
Author:
Heather M. Conboy (hconboy@cs.umass.edu)

Constructor Summary
StringConversions()
           
 
Method Summary
static java.lang.String addBackSlash(java.lang.String in_string)
          Add a back slash before quotation marks and back slashs.
static java.lang.String removeBackSlash(java.lang.String in_string)
          This method removes any back slash within the input string that is not preceded by another back slash.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringConversions

public StringConversions()
Method Detail

addBackSlash

public static java.lang.String addBackSlash(java.lang.String in_string)
Add a back slash before quotation marks and back slashs.

Note: This is necessary for the string to be interpreted correctly by dotty.

Parameters:
in_string - The string to convert
Returns:
The string with the extra backslashs added

removeBackSlash

public static java.lang.String removeBackSlash(java.lang.String in_string)
This method removes any back slash within the input string that is not preceded by another back slash.

Parameters:
in_string - The string to convert
Returns:
The string with any extra back slashs removed