Changeset 175 for trunk/JavaHelperLib/src/de/ugoe/cs/util/StringTools.java
- Timestamp:
- 09/09/11 23:52:51 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaHelperLib/src/de/ugoe/cs/util/StringTools.java
r1 r175 1 1 package de.ugoe.cs.util; 2 2 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 */ 3 11 final public class StringTools { 4 12 5 public final static String ENDLINE = System.getProperty("line.separator");6 7 13 /** 8 14 * <p> 9 * Replaces all occurences of {@literal &, <, >, ', and "} with their 10 * respective XML entites {@literal &, <, >, ', and "} 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 &, <, >, ', and "} 11 24 * without destroying already existing entities. 12 25 * </p> 13 26 * 14 27 * @param str 15 * String where the XML entit es are to be replaced16 * @return new String, where the XML entit es are used instead of the28 * String where the XML entities are to be replaced 29 * @return new String, where the XML entities are used instead of the 17 30 * literals 18 31 */
Note: See TracChangeset
for help on using the changeset viewer.