Package br.msf.commons.lang

Examples of br.msf.commons.lang.EnhancedStringBuilder.substring()


                    /* source already have a license header. lets replace it */
                    builder.replace(me, getJavaLicense());
                    break;
                case WITHOUT_LICENSE_FILES:
                    /* we consider the default netbeans template as "file without license" */
                    if (builder.substring(me.getStart(), me.getEnd()).contains(NB_LICENSE_TEMPLATE)) {
                        builder.replace(me, getJavaLicense());
                    } else {
                        /* returning null sinalize that this FileObject will not be updated */
                        return null;
                    }
View Full Code Here


                    }
                }
            }
            if (mark >= 0) {
                // if we found the ' ' occurrence we were looking for, we cut the line and create a subline with it
                lines.add(builder.substring(0, mark).trim());
                // remove the just added subline
                builder.delete(0, mark);
            } else {
                // it must be a super dupper mega word with no space! dont break it!
                lines.add(builder.trim().toString());
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.