Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

RSE
Release 3.0

org.eclipse.rse.ui
Class MassagerAddQuotes

java.lang.Object
  extended by 
org.eclipse.rse.ui.MassagerAddQuotes
All Implemented Interfaces:
ISystemMassager

public class MassagerAddQuotes
extends Object
implements ISystemMassager

This massager will take a string an add quotes to it by wrapping the string in the quote character and doubling any interior instances of the quote character.


Constructor Summary
MassagerAddQuotes ()
          Construct a new instance of the massager.
MassagerAddQuotes (char quote)
          Construct a new instance of the massager.
 
Method Summary
  String massage ( String text)
          Quotes the string by surround the original string with the quote character and doubling any internal occurences of the character.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MassagerAddQuotes

public MassagerAddQuotes()
Construct a new instance of the massager. This instance assumes the quote character is the apostrophe '\''.


MassagerAddQuotes

public MassagerAddQuotes(char quote)
Construct a new instance of the massager. This instance uses the supplied character as the quoting character.

Parameters:
quote - the quote character to use in quoting strings
Method Detail

massage

public 
String massage(
String text)
Quotes the string by surround the original string with the quote character and doubling any internal occurences of the character.

Specified by:
massage in interface ISystemMassager
Parameters:
text - the string to be quoted
Returns:
the quoted string
See Also:
ISystemMassager.massage(String)

RSE
Release 3.0

Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire