Java String Truncate truncate(String url, int offset, int size)

Here you can find the source of truncate(String url, int offset, int size)

Description

truncate

License

Apache License

Declaration

private static String truncate(String url, int offset, int size) 

Method Source Code

//package com.java2s;
//Licensed under the Apache License, Version 2.0 (the "License");

public class Main {
    private static String truncate(String url, int offset, int size) {
        return url.substring(offset, offset + size - 3) + "...";
    }//from   w w w  .  java  2  s.co m
}

Related

  1. truncate(String text, int length)
  2. truncate(String text, int maxLength)
  3. truncate(String text, int size, String charsetName)
  4. truncate(String text, int truncatedLength)
  5. truncate(String toTruncate, int maxSize)
  6. Truncate(String v, int length)
  7. truncate(String val, int maxlen)
  8. truncate(String value, int length)
  9. truncate(String value, int length)