org.sourcejammer.util
Class StringUtil

java.lang.Object
  |
  +--org.sourcejammer.util.StringUtil

public class StringUtil
extends java.lang.Object

Title: $FileName: StringUtil.java$

Version:
$VerNum: 4$

$Description: $ $KeyWordsOff: $
Author:
$AuthorName: Rob MacGrogan$

Nested Class Summary
static class StringUtil.DateFormats
           
 
Field Summary
private static java.text.DateFormat medium
           
private static java.text.SimpleDateFormat moLongWithTimeFormat
           
private static java.text.DateFormat moShortWithTimeFormat
           
 
Constructor Summary
private StringUtil()
           
 
Method Summary
static java.lang.String dateString(java.util.Date d, int format)
           
static boolean firstStringSortsBeforeSecond(java.lang.String sOne, java.lang.String sTwo, boolean invert)
           
static java.lang.String fixedLength(java.lang.String source, int length)
           
static boolean isNumeric(java.lang.String sCheck)
          Checks if the string is numeric.
static void main(java.lang.String[] args)
           
static java.lang.String replaceSubstring(java.lang.String sTarget, java.lang.String sSubstring, java.lang.String sReplaceWith)
          Returns sTarget with all instances of sSubstring replaced with sReplaceWith.
static NodeIterator sortNodeIterator(NodeIterator iter)
          Return a new NodeIterator with some contents as iter passed in, but sorted by NodeName.
static NodeIterator sortNodeIterator(NodeIterator iter, boolean invert)
          Return a new NodeIterator with some contents as iter passed in, but sorted by NodeName.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

moLongWithTimeFormat

private static java.text.SimpleDateFormat moLongWithTimeFormat

moShortWithTimeFormat

private static java.text.DateFormat moShortWithTimeFormat

medium

private static java.text.DateFormat medium
Constructor Detail

StringUtil

private StringUtil()
Method Detail

replaceSubstring

public static java.lang.String replaceSubstring(java.lang.String sTarget,
                                                java.lang.String sSubstring,
                                                java.lang.String sReplaceWith)
Returns sTarget with all instances of sSubstring replaced with sReplaceWith.


dateString

public static java.lang.String dateString(java.util.Date d,
                                          int format)

fixedLength

public static java.lang.String fixedLength(java.lang.String source,
                                           int length)

main

public static void main(java.lang.String[] args)

sortNodeIterator

public static NodeIterator sortNodeIterator(NodeIterator iter)
Return a new NodeIterator with some contents as iter passed in, but sorted by NodeName.


sortNodeIterator

public static NodeIterator sortNodeIterator(NodeIterator iter,
                                            boolean invert)
Return a new NodeIterator with some contents as iter passed in, but sorted by NodeName.


firstStringSortsBeforeSecond

public static boolean firstStringSortsBeforeSecond(java.lang.String sOne,
                                                   java.lang.String sTwo,
                                                   boolean invert)

isNumeric

public static boolean isNumeric(java.lang.String sCheck)
Checks if the string is numeric.



Copyright 2003 Soucejammer project.