Substrings a String from the position of one of its content-strings. @param input The input String that should be substringed. @param from The content from which the String should be substringed at. @return The substringed String.
(String input, String from)
| 523 | * @return The substringed String. |
| 524 | */ |
| 525 | public static String substringFrom(String input, String from) { |
| 526 | if (!input.contains(from)) |
| 527 | return input; |
| 528 | int substring = input.indexOf(from); |
| 529 | return input.substring(substring); |
| 530 | } |
| 531 | |
| 532 | public static String bytesToReadable(long bytes) { |
| 533 | final int unit = 1024; |