public interface ILoadPaths
The Venice functions 'load-file' and 'load-resource' can be bound to load files and resources from restricted paths only. Load paths are part of Venice's Sandbox to control where files can be loaded from.
LoadPathsFactory| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.io.File> |
getPaths() |
boolean |
isUnlimitedAccess() |
java.nio.ByteBuffer |
loadBinaryResource(java.io.File file)
Loads a binary resources file from the load paths
|
java.lang.String |
loadTextResource(java.io.File file,
java.lang.String encoding)
Loads a text resources file from the load paths
|
java.lang.String |
loadVeniceFile(java.io.File file)
Load a Venice script file from the load paths
|
java.lang.String loadVeniceFile(java.io.File file)
file - A Venice script file to load. Adds a '.venice' file
extension implicitly if missing.null if not foundjava.nio.ByteBuffer loadBinaryResource(java.io.File file)
file - A file to load.null if not foundjava.lang.String loadTextResource(java.io.File file,
java.lang.String encoding)
file - A file to load.encoding - an optional text encoding like 'UTF-8'. The platform's
default encoding is used on passing nullnull if not foundjava.util.List<java.io.File> getPaths()
ILoadPaths objectboolean isUnlimitedAccess()
true if the access to files is unlimited or
false if the access is limited to the load paths.