Java String Sub String subStringNotEncode(String subject, int size)

Here you can find the source of subStringNotEncode(String subject, int size)

Description

sub String Not Encode

License

Open Source License

Declaration

public static String subStringNotEncode(String subject, int size) 

Method Source Code

//package com.java2s;

public class Main {

    public static String subStringNotEncode(String subject, int size) {
        if ((subject != null) && (subject.length() > size))
            subject = subject.substring(0, size) + "...";

        return subject;
    }//  w w w  . ja va 2s  . c o m
}

Related

  1. substringMatch(CharSequence str, int index, CharSequence substring)
  2. substringMatch(CharSequence str, int index, CharSequence substring)
  3. substringMatches(final String source, final String substring, final boolean checkBoundaries)
  4. substringMore(String s, int maxlen)
  5. subStringNobit(String str, int toCount, String more)
  6. subStringRight(String str, int length)
  7. substrings(String str, int start, int end)
  8. subStrings(String str1, String str2)
  9. substrings(String[] arr, int start, int end)