Example usage for org.apache.commons.lang3.text WordUtils initials

List of usage examples for org.apache.commons.lang3.text WordUtils initials

Introduction

In this page you can find the example usage for org.apache.commons.lang3.text WordUtils initials.

Prototype

public static String initials(final String str) 

Source Link

Document

Extracts the initial letters from each word in the String.

The first letter of the string and all first letters after whitespace are returned as a new string.

Usage

From source file:uk.co.techblue.docusign.client.test.DocusignTest.java

private static TextTab getMockInitialsHere(final String value, final String anchorText) {
    final TextTab textTab = new TextTab();
    textTab.setAnchorString(anchorText);
    textTab.setRequired(true);/*  ww w.  j av a  2s.co  m*/
    textTab.setLocked(true);
    textTab.setBold(true);
    textTab.setAnchorXOffset(60);
    textTab.setAnchorYOffset(-3);
    textTab.setValue(WordUtils.initials(value));
    return textTab;
}