Concordance
Class Conversion

java.lang.Object
  extended by Concordance.Conversion

public class Conversion
extends java.lang.Object

Version:
1.00 The Conversion Class allows the removePunctuation method to be called globally from anywhere in the program, the purpose of this class is to remove all non letter characters from a string and replace them with nothing.
Author:
Jonathan Field jof2@aber.ac.uk 073717922

Constructor Summary
Conversion()
           
 
Method Summary
 java.lang.String removePuncuation(java.lang.String unconverted)
           
 java.lang.String toUpperCaseFirstLetter(java.lang.String toBeCapitalised)
          Converts first letter of a String to lower case but performance is negated too much on larger text files, so not used as default.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Conversion

public Conversion()
Method Detail

removePuncuation

public java.lang.String removePuncuation(java.lang.String unconverted)
Parameters:
unconverted - Takes a String to have its Punctuation removed
Returns:
Returns a String that has no Punctuation e.g. "hel-l-o" would generate the return String "hello"

toUpperCaseFirstLetter

public java.lang.String toUpperCaseFirstLetter(java.lang.String toBeCapitalised)
Converts first letter of a String to lower case but performance is negated too much on larger text files, so not used as default.

Parameters:
toBeCapitalised - A String requiring its first letter to be converted to Upper Case
Returns: