| Modifier and Type | Method and Description |
|---|---|
static <T> Source<T> |
classpathFileSource(String path)
Creates a new
ClasspathFileSource for loading a local file resource from the
Java classpath. |
static <T> Source<T> |
dynamicSource(String path)
Creates a new
DynamicSource. |
static <T> Source<T> |
fileSource(String path)
Creates a new
FileSource for loading a local file from the file system. |
static <T> Source<T> |
stringSource(String string)
Creates a new
StringSource for loading contents of a String. |
static <T> Source<T> |
urlSource(String url)
Creates a new
URLSource for loading contents of a URL. |
public static <T> Source<T> fileSource(String path)
FileSource for loading a local file from the file system.
The path may contain system environment variables, which must be placed between
"${" and "}". For example: "${TEMP}/file.txt".
T - the target return typepath - the file pathFileSourcepublic static <T> Source<T> classpathFileSource(String path)
ClasspathFileSource for loading a local file resource from the
Java classpath.T - the target return typepath - the relative path to the source file in the Java classpathClasspathFileSourcepublic static <T> Source<T> dynamicSource(String path)
DynamicSource.T - the target return typepath - the path to the dynamic resourceDynamicSourcepublic static <T> Source<T> stringSource(String string)
StringSource for loading contents of a String.T - the target return typestring - the string to be parsedStringSourceCopyright © 2021. All rights reserved.