public final class AdapterUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isAllPages(String rawString) |
static int |
parseInt(String input,
String explainedInput)
Parse input string into an integer, throwing an exception in case the input cannot be parsed
|
static Integer |
parseIntSilently(String input)
Parse input string into an integer, silently returning a
null in case the input cannot be parsed |
static String[] |
split(String input)
Splits an input string using the default ":" separator
|
static String[] |
splitAndTrim(String input)
Same as
splitAndTrim(String, String) only it uses default ":" separator |
static String[] |
splitAndTrim(String input,
String separator)
Splits an input string using the specified separator.
|
public static int parseInt(String input, String explainedInput)
input - explainedInput - the user-friendly name of what the input represents, to be used in exception message. Ex: "page number" or "phone number"SejdaRuntimeException - if the input cannot be parsedfor an alternative that silently returns {@code null} in case the input cannot be parsedpublic static String[] split(String input)
input - public static String[] splitAndTrim(String input)
splitAndTrim(String, String) only it uses default ":" separatorinput - public static String[] splitAndTrim(String input, String separator)
input - separator - public static Integer parseIntSilently(String input)
null in case the input cannot be parsedinput - for an alternative that throws an exception when input cannot be parsedpublic static boolean isAllPages(String rawString)
rawString - Copyright © 2021 sejda. All rights reserved.