Java String Sub String substring(StringBuffer buf, int start, int lim)

Here you can find the source of substring(StringBuffer buf, int start, int lim)

Description

substring

License

Open Source License

Declaration

public static String substring(StringBuffer buf, int start, int lim) 

Method Source Code

//package com.java2s;

public class Main {
    public static String substring(StringBuffer buf, int start, int lim) {
        int len = lim - start;
        char[] result = new char[len];
        buf.getChars(start, lim, result, 0);
        return String.valueOf(result);
    }//w w  w  .java 2s . c o  m
}

Related

  1. substring(String text, int startPos, int endPos)
  2. substring(String text, int startPos, int len)
  3. subString(String text, String leadingPart)
  4. subString(String val, int start, int end)
  5. SubString(String x, long y)
  6. substring2ByteString(String str, int endIndex)
  7. subString4lastIndex(String string, String regex)
  8. substringAfter(final String str, final String separator)
  9. substringAfter(String s, String cs)