Here you can find the source of truncateName(String name)
protected static String truncateName(String name)
//package com.java2s; public class Main { protected static String truncateName(String name) { if (name == null || name.length() <= 12) return name; else//ww w .j a v a 2 s.c o m return name.substring(0, 12); } }