List of usage examples for org.apache.commons.lang3.text WordUtils initials
public static String initials(final String str)
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.
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; }