public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
closeStreams(BiConsumer<Closeable,IOException> consumer,
Closeable... closeables)
Closes the specified streams, suppressing any exceptions that occur logging or processing
IOException |
static boolean |
closeStreams(Closeable... closeables)
Quietly closes all provided objects catching and logging all
IOException. |
static boolean |
containsOnlyLatinCharsAndPunctuation(String data) |
static Optional<Method> |
getMethodByTag(Class<?> clazz,
String methodTag,
boolean isGetter) |
static boolean |
isText(String data)
Checks that input string has only chars allowed in usual string of any language
|
static void |
toString(com.aspose.note.TextStyle textStyle) |
public static boolean closeStreams(BiConsumer<Closeable,IOException> consumer, Closeable... closeables)
Closes the specified streams, suppressing any exceptions that occur logging or processing IOException
consumer - Will be called for each pair of closeable and IOException when closing throws the exception, may be nullcloseables - Any object that implements Closeable interface, may be nullpublic static boolean closeStreams(Closeable... closeables)
IOException.closeables - Any object that implements Closeable interface, may be nullpublic static boolean containsOnlyLatinCharsAndPunctuation(String data)
public static Optional<Method> getMethodByTag(Class<?> clazz, String methodTag, boolean isGetter)
public static boolean isText(String data)
public static void toString(com.aspose.note.TextStyle textStyle)
Copyright © 2024. All rights reserved.