Ignore:
Timestamp:
09/09/11 23:52:51 (13 years ago)
Author:
sherbold
Message:
  • code documentation and formatting
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaHelperLib/src/de/ugoe/cs/util/StringTools.java

    r1 r175  
    11package de.ugoe.cs.util; 
    22 
     3/** 
     4 * <p> 
     5 * Helper class that provides methods to simplify working with {@link String}s. 
     6 * </p> 
     7 *  
     8 * @author Steffen Herbold 
     9 * @version 1.0 
     10 */ 
    311final public class StringTools { 
    412 
    5         public final static String ENDLINE = System.getProperty("line.separator"); 
    6          
    713        /** 
    814         * <p> 
    9          * Replaces all occurences of {@literal &, <, >, ', and "} with their 
    10          * respective XML entites {@literal &amp;, &lt;, &gt;, &apos;, and &quot;} 
     15         * Simplifies use of operation system specific line separators. 
     16         * </p> 
     17         */ 
     18        public final static String ENDLINE = System.getProperty("line.separator"); 
     19 
     20        /** 
     21         * <p> 
     22         * Replaces all occurrences of {@literal &, <, >, ', and "} with their 
     23         * respective XML entities {@literal &amp;, &lt;, &gt;, &apos;, and &quot;} 
    1124         * without destroying already existing entities. 
    1225         * </p> 
    1326         *  
    1427         * @param str 
    15          *            String where the XML entites are to be replaced 
    16          * @return new String, where the XML entites are used instead of the 
     28         *            String where the XML entities are to be replaced 
     29         * @return new String, where the XML entities are used instead of the 
    1730         *         literals 
    1831         */ 
Note: See TracChangeset for help on using the changeset viewer.