Class Text



  • public class Text
    extends Object
    Static methods related to Strings and text.
    • Constructor Detail

      • Text

        public Text()
    • Method Detail

      • isWhiteSpace

        public static boolean isWhiteSpace(String s)
      • getParagraphs

        public static String[] getParagraphs(String s)
      • replace

        public static String replace(String text,
                                     String searchFor,
                                     String replaceWith)
        This replaces all the occurrences of one substring with another.

        A comparable method is built into the String class in Java 1.5, but this method is provided to maintain compatibility with Java 1.4. TODO: remove now that we use Java 1.5