Package io.reactiverse.es4x.impl
Class VertxFileSystem
- java.lang.Object
-
- io.reactiverse.es4x.impl.VertxFileSystem
-
- All Implemented Interfaces:
org.graalvm.polyglot.io.FileSystem
public final class VertxFileSystem extends Object implements org.graalvm.polyglot.io.FileSystem
-
-
Constructor Summary
Constructors Constructor Description VertxFileSystem(io.vertx.core.Vertx vertx, String importMap, String... extensions)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckAccess(Path path, Set<? extends AccessMode> modes, LinkOption... linkOptions)voidcopy(Path source, Path target, CopyOption... options)voidcreateDirectory(Path dir, FileAttribute<?>... attrs)voidcreateLink(Path link, Path existing)voidcreateSymbolicLink(Path link, Path target, FileAttribute<?>... attrs)voiddelete(Path path)static StringgetCWD()PathgetTempDirectory()booleanisSameFile(Path path1, Path path2, LinkOption... options)voidmove(Path source, Path target, CopyOption... options)SeekableByteChannelnewByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs)DirectoryStream<Path>newDirectoryStream(Path dir, DirectoryStream.Filter<? super Path> filter)PathparsePath(String path)Given a path string returns a absolute path relative to the CWDPathparsePath(URI uri)Map<String,Object>readAttributes(Path path, String attributes, LinkOption... options)PathreadSymbolicLink(Path link)voidsetAttribute(Path path, String attribute, Object value, LinkOption... options)voidsetCurrentWorkingDirectory(Path currentWorkingDirectory)PathtoAbsolutePath(Path path)PathtoRealPath(Path path, LinkOption... linkOptions)
-
-
-
Method Detail
-
getCWD
public static String getCWD()
-
parsePath
public Path parsePath(URI uri)
- Specified by:
parsePathin interfaceorg.graalvm.polyglot.io.FileSystem
-
parsePath
public Path parsePath(String path)
Given a path string returns a absolute path relative to the CWD- 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
public void createDirectory(Path dir, FileAttribute<?>... attrs) throws IOException
- Specified by:
createDirectoryin interfaceorg.graalvm.polyglot.io.FileSystem- Throws:
IOException
-
delete
public void delete(Path path) throws IOException
- Specified by:
deletein interfaceorg.graalvm.polyglot.io.FileSystem- Throws:
IOException
-
copy
public void copy(Path source, Path target, CopyOption... options) throws IOException
- Specified by:
copyin interfaceorg.graalvm.polyglot.io.FileSystem- Throws:
IOException
-
move
public void move(Path source, Path target, CopyOption... options) throws IOException
- Specified by:
movein 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
-
createLink
public void createLink(Path link, Path existing) throws IOException
- Specified by:
createLinkin interfaceorg.graalvm.polyglot.io.FileSystem- Throws:
IOException
-
createSymbolicLink
public void createSymbolicLink(Path link, Path target, FileAttribute<?>... attrs) throws IOException
- Specified by:
createSymbolicLinkin interfaceorg.graalvm.polyglot.io.FileSystem- Throws:
IOException
-
readSymbolicLink
public Path readSymbolicLink(Path link) throws IOException
- Specified by:
readSymbolicLinkin 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
-
setAttribute
public void setAttribute(Path path, String attribute, Object value, LinkOption... options) throws IOException
- Specified by:
setAttributein interfaceorg.graalvm.polyglot.io.FileSystem- Throws:
IOException
-
toAbsolutePath
public Path toAbsolutePath(Path path)
- Specified by:
toAbsolutePathin interfaceorg.graalvm.polyglot.io.FileSystem
-
setCurrentWorkingDirectory
public void setCurrentWorkingDirectory(Path currentWorkingDirectory)
- Specified by:
setCurrentWorkingDirectoryin interfaceorg.graalvm.polyglot.io.FileSystem
-
toRealPath
public Path toRealPath(Path path, LinkOption... linkOptions) throws IOException
- Specified by:
toRealPathin interfaceorg.graalvm.polyglot.io.FileSystem- Throws:
IOException
-
isSameFile
public boolean isSameFile(Path path1, Path path2, LinkOption... options) throws IOException
- Specified by:
isSameFilein interfaceorg.graalvm.polyglot.io.FileSystem- Throws:
IOException
-
getTempDirectory
public Path getTempDirectory()
- Specified by:
getTempDirectoryin interfaceorg.graalvm.polyglot.io.FileSystem
-
-