public final class Utility extends Object
| Modifier and Type | Field and Description |
|---|---|
static Charset |
CHARSET_UTF8 |
| Modifier and Type | Method and Description |
|---|---|
static String |
concatenateOptional(String a,
String b)
Concatenate first string with optional second string, with a colon separator.
|
static String |
directoryPath(String path)
Get classpath path directory from file path.
|
static InputStream |
findResource(String path)
Get input stream for resource.
|
static byte[] |
readFully(InputStream is)
Read input stream to byte array.
|
public static final Charset CHARSET_UTF8
public static byte[] readFully(InputStream is) throws IOException
is - IOExceptionpublic static String directoryPath(String path)
path - public static InputStream findResource(String path)
path - Copyright © 2025 MuleSoft, Inc.. All rights reserved.