public class FileUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FileUtil.Location |
| Constructor and Description |
|---|
FileUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
fileAppendPath(String pathPrefix,
String pathSuffix) |
static InputStream |
open(Class<?> clazz,
String name)
Attempt to open a file/resource from a series of locations.
|
static InputStream |
open(Class<?> clazz,
String name,
FileUtil.Location... locations)
Attempt to open a file/resource from a series of locations.
|
static String |
sessionIdFileName(SessionID sessionID) |
public static InputStream open(Class<?> clazz, String name)
clazz - name - public static InputStream open(Class<?> clazz, String name, FileUtil.Location... locations)
clazz - a class (can be null) for resource searchesname - the name of the file/resourcelocations - a series of locations that will be searched.Copyright © 2021. All rights reserved.