Example usage for org.apache.commons.lang WordUtils initials

List of usage examples for org.apache.commons.lang WordUtils initials

Introduction

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

Prototype

public static String initials(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:org.eclipse.osee.define.blam.operation.SystemSubsystemReport.java

private String getShortSheetName(String subSysName, String sufix) {
    String shortenSubSysName = subSysName.contains(" ") ? WordUtils.initials(subSysName) : subSysName;
    return shortenSubSysName + " " + sufix;
}