public static final class IOAccess.Builder extends Object
IO access configuration.| Modifier and Type | Method and Description |
|---|---|
IOAccess.Builder |
allowHostFileAccess(boolean allow)
If
true, it allows the guest language unrestricted access to files on the host
system. |
IOAccess.Builder |
allowHostSocketAccess(boolean allow)
If
true, it allows the guest language unrestricted access to host system sockets. |
IOAccess |
build()
Creates an instance of the custom IO access configuration.
|
IOAccess.Builder |
fileSystem(FileSystem fileSystem)
Sets a new
FileSystem. |
public IOAccess.Builder allowHostFileAccess(boolean allow)
true, it allows the guest language unrestricted access to files on the host
system.public IOAccess.Builder allowHostSocketAccess(boolean allow)
true, it allows the guest language unrestricted access to host system sockets.public IOAccess.Builder fileSystem(FileSystem fileSystem)
FileSystem. Access to the file system in the guest language will be
virtualized using the fileSystem. A file system can restrict access to files or
fully virtualize file system operations. An example of virtualization is a memory-based
file system.fileSystem - the file system to use in the guest languageIOAccess.Builderpublic IOAccess build()
IllegalArgumentException - if host file access is enabled and a custom file system
is set.