示例#1
0
  public static void main(String[] args) {
    String test = "http://www.bioassayontology.org/bao#BAO_0000020";

    boolean result = StringProcessing.isURL(test);

    System.out.println(result);
  }
示例#2
0
  public static String convertStringToTitleCase(String toConvert) {
    BreakIterator wordBreaker = BreakIterator.getWordInstance();
    wordBreaker.setText(toConvert);
    int end;

    String word = "";
    for (int start = wordBreaker.first();
        (end = wordBreaker.next()) != BreakIterator.DONE;
        start = end) {

      word += StringProcessing.wordToTitleCase(toConvert.substring(start, end));
    }

    return word;
  }