| Modifier and Type | Method and Description |
|---|---|
static Source |
file(@Nullable File baseDirectory,
String fileName) |
static Source |
fromCharSource(com.google.common.io.CharSource source)
Create
Source from a generic text source such as string, CharBuffer
or text file. |
static Source |
of(File file) |
static Source |
of(URL url) |
static Source |
url(String url) |
public static Source fromCharSource(com.google.common.io.CharSource source)
Source from a generic text source such as string, CharBuffer
or text file. Useful when data is already in memory or can't be directly read from
a file or url.source - generic "re-redable" source of charactersSource delegate for CharSource (can't be null)NullPointerException - when source is nullCopyright © 2012-2022 Apache Software Foundation. All Rights Reserved.