| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--jwo.vfc.hub.HubUtils
A collection of static text utilities for text processing.
| Field Summary | |
| static float | VERSIONCurrent version of the hub client and requests. | 
| Constructor Summary | |
| HubUtils() | |
| Method Summary | |
| static String | getNatGrid(int easting,
           int northing)Converts national grid reference (eg 338500, 510500) to letter and digit reference (eg NY 38500 10500). | 
| static Point | getNatGrid(String letters,
           int easting,
           int northing)Converts national grid from letters and digits (eg NY 38500 10500) to all digits (eg 338500, 510500). | 
| static String | replace(String text,
        String oldWord,
        String newWord)Replaces all occurrances of oldWord with newWord in a given string. | 
| static String | replace(String text,
        String oldWord,
        String newWord,
        boolean caseSensitive)Replaces all occurrances of oldWord with newWord in a given string. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
public static final float VERSION
| Constructor Detail | 
public HubUtils()
| Method Detail | 
public static String replace(String text,
                             String oldWord,
                             String newWord)
text - Text to search and replace.oldWord - Old word to search for.newWord - New word to replace oldWord with.
public static String replace(String text,
                             String oldWord,
                             String newWord,
                             boolean caseSensitive)
text - Text to search and replace.oldWord - Old word to search for.newWord - New word to replace oldWord with.caseSensitive - Determines of search should be case sensitive.
public static Point getNatGrid(String letters,
                               int easting,
                               int northing)
letters - - National Grid 100km square as 2 letterseasting - - easting part of coordinatenorthing - - northing part of coordinate.
public static String getNatGrid(int easting,
                                int northing)
easting - - easting part of coordinatenorthing - - northing part of coordinate.
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||