Here you can find the source of wrapText(String description)
private static List<String> wrapText(String description)
//package com.java2s; /*// w w w . j a v a 2s. com // This software is subject to the terms of the Eclipse Public License v1.0 // Agreement, available at the following URL: // http://www.eclipse.org/legal/epl-v10.html. // You must accept the terms of that agreement to use this software. // // Copyright (C) 2011-2011 Pentaho // All Rights Reserved. */ import java.util.*; public class Main { private static List<String> wrapText(String description) { description = description.trim(); return Arrays.asList(description.split("\n")); } }