Jode 1.90-CVS
Build Aug 6, 2004

net.sf.jode.util
Class StringQuoter

java.lang.Object
  extended bynet.sf.jode.util.StringQuoter

public class StringQuoter
extends java.lang.Object

This is a simple class to quote a string or a char. It puts it in quotes (" resp. ') and prints special chars with the same syntax as strings and chars in java source codes.


Constructor Summary
StringQuoter()
           
 
Method Summary
static java.lang.String quote(char c)
          This is the static method, that quotes a char.
static java.lang.String quote(java.lang.String str)
          This is the static method, that quotes a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringQuoter

public StringQuoter()
Method Detail

quote

public static java.lang.String quote(java.lang.String str)
This is the static method, that quotes a string.


quote

public static java.lang.String quote(char c)
This is the static method, that quotes a char.


Jode 1.90-CVS
Build Aug 6, 2004

Copyright © 1998-2004 by Jochen Hoenicke.