Class Escape


  • public class Escape
    extends java.lang.Object
    This class is for escaping CDATA sections. The code was "borrowed" from the JDOM code. Also included is escaping the " -> " character and the conversion of newlines to the platform line separator.
    Version:
    $Id: Escape.java 463298 2006-10-12 16:10:32Z henning $
    Author:
    Will Glass-Husain, Jon S. Stevens
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String LINE_SEPARATOR  
    • Constructor Summary

      Constructors 
      Constructor Description
      Escape()
      Empty constructor
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getText​(java.lang.String st)
      Do the escaping.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LINE_SEPARATOR

        public static final java.lang.String LINE_SEPARATOR
    • Constructor Detail

      • Escape

        public Escape()
        Empty constructor
    • Method Detail

      • getText

        public static final java.lang.String getText​(java.lang.String st)
        Do the escaping.
        Parameters:
        st -
        Returns:
        The escaped text.