public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
askUserForInputOn(String message)
Waits for user input.
|
static File |
getResourceFile(String name)
Allows getting access to the file from the bundled resources (main/resources).
|
static String |
readResourceToString(String fileName)
Reads resource file to string.
|
public static String askUserForInputOn(String message)
message - the message for the userpublic static File getResourceFile(String name)
name - the name of the resource file.public static String readResourceToString(String fileName) throws IOException
fileName - the name of resource file.IOException - if any I/O exception occurs.Copyright © 2022. All rights reserved.