com.carrotsearch.junitbenchmarks
Class Escape

java.lang.Object
  extended by com.carrotsearch.junitbenchmarks.Escape

public final class Escape
extends Object

Entity escaping.


Constructor Summary
Escape()
           
 
Method Summary
static String htmlEscape(String string)
          Escape special HTML entities.
static String jsonEscape(String string)
          Escape a JSON string.
static Object sqlEscape(String string)
          Escape an SQL string.
static String xmlAttrEscape(String string)
          Escape XML attribute's value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Escape

public Escape()
Method Detail

htmlEscape

public static String htmlEscape(String string)
Escape special HTML entities.


jsonEscape

public static String jsonEscape(String string)
Escape a JSON string.


sqlEscape

public static Object sqlEscape(String string)
Escape an SQL string.


xmlAttrEscape

public static String xmlAttrEscape(String string)
Escape XML attribute's value.



Copyright © 2013 Carrot Search s.c.. All Rights Reserved.