public final class Resource extends Object
| Constructor and Description |
|---|
Resource() |
| Modifier and Type | Method and Description |
|---|---|
static String |
read(Reader aReader)
Returns resource string from a reader.
|
static String |
read(String fileName)
Returns resource string from a file.
|
static String |
read(String fileName,
Class cl)
Reads the resource from a class loader.
|
static boolean |
save(String aFileName,
String aContent)
Returns
true if a string is successfully written to a file. |
public static String read(String fileName, Class cl)
fileName - Resource to be read.cl - Class which delegates the classloader functionality.public static String read(Reader aReader)
aReader - Reader object.public static String read(String fileName)
fileName - File name.
Returns resource string from file.Copyright © 2010–2023 Open Identity Platform Community. All rights reserved.