public class PersistUtils
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
PersistUtils.Reader<T> |
static interface |
PersistUtils.StreamReader<T> |
static interface |
PersistUtils.StreamWriter |
static interface |
PersistUtils.Writer |
Constructor and Description |
---|
PersistUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
exists(java.net.URI uri) |
static <T> T |
read(java.net.URI uri,
PersistUtils.Reader<T> r) |
static <T> T |
readStream(java.net.URI uri,
PersistUtils.StreamReader<T> r) |
static java.lang.String |
sanitizeUri(java.lang.String uri) |
static void |
write(java.net.URI uri,
PersistUtils.Writer w) |
static void |
writeStream(java.net.URI uri,
PersistUtils.StreamWriter w) |
public static java.lang.String sanitizeUri(java.lang.String uri)
public static <T> T read(java.net.URI uri, PersistUtils.Reader<T> r)
public static <T> T readStream(java.net.URI uri, PersistUtils.StreamReader<T> r)
public static void write(java.net.URI uri, PersistUtils.Writer w)
public static void writeStream(java.net.URI uri, PersistUtils.StreamWriter w)
public static boolean exists(java.net.URI uri)