Examples of PlainTextPart


Examples of net.pterodactylus.sone.text.PlainTextPart

        for (Part part : parts) {
          if (part instanceof PlainTextPart) {
            String longText = ((PlainTextPart) part).getText();
            if (allPartsLength < cutOffLength) {
              if ((allPartsLength + longText.length()) > cutOffLength) {
                shortenedParts.add(new PlainTextPart(longText.substring(0, cutOffLength - allPartsLength) + "…"));
              } else {
                shortenedParts.add(part);
              }
            }
            allPartsLength += longText.length();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.