Package com.lucidworks.apollo.util
Class BlobFileSystem
java.lang.Object
com.lucidworks.apollo.util.BlobFileSystem
- All Implemented Interfaces:
org.graalvm.polyglot.io.FileSystem
File system for GraalVM context, allows to import the javascript files from blob store, in a convenient way like from file
Use `load('blob:nameofscriptinblobstore.js')` to external Javascript code
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckAccess(Path path, Set<? extends AccessMode> modes, LinkOption... linkOptions) voidcreateDirectory(Path dir, FileAttribute<?>... attrs) voidnewByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) newDirectoryStream(Path dir, DirectoryStream.Filter<? super Path> filter) readAttributes(Path path, String attributes, LinkOption... options) toAbsolutePath(Path path) toRealPath(Path path, LinkOption... linkOptions) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.graalvm.polyglot.io.FileSystem
copy, createLink, createSymbolicLink, getEncoding, getMimeType, getPathSeparator, getSeparator, getTempDirectory, isSameFile, move, readSymbolicLink, setAttribute, setCurrentWorkingDirectory
-
Constructor Details
-
BlobFileSystem
-
-
Method Details
-
parsePath
- Specified by:
parsePathin interfaceorg.graalvm.polyglot.io.FileSystem
-
parsePath
- Specified by:
parsePathin interfaceorg.graalvm.polyglot.io.FileSystem
-
checkAccess
public void checkAccess(Path path, Set<? extends AccessMode> modes, LinkOption... linkOptions) throws IOException - Specified by:
checkAccessin interfaceorg.graalvm.polyglot.io.FileSystem- Throws:
IOException
-
createDirectory
- Specified by:
createDirectoryin interfaceorg.graalvm.polyglot.io.FileSystem- Throws:
IOException
-
delete
- Specified by:
deletein interfaceorg.graalvm.polyglot.io.FileSystem- Throws:
IOException
-
newByteChannel
public SeekableByteChannel newByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IOException - Specified by:
newByteChannelin interfaceorg.graalvm.polyglot.io.FileSystem- Throws:
IOException
-
newDirectoryStream
public DirectoryStream<Path> newDirectoryStream(Path dir, DirectoryStream.Filter<? super Path> filter) throws IOException - Specified by:
newDirectoryStreamin interfaceorg.graalvm.polyglot.io.FileSystem- Throws:
IOException
-
toAbsolutePath
- Specified by:
toAbsolutePathin interfaceorg.graalvm.polyglot.io.FileSystem
-
toRealPath
- Specified by:
toRealPathin interfaceorg.graalvm.polyglot.io.FileSystem- Throws:
IOException
-
readAttributes
public Map<String,Object> readAttributes(Path path, String attributes, LinkOption... options) throws IOException - Specified by:
readAttributesin interfaceorg.graalvm.polyglot.io.FileSystem- Throws:
IOException
-