Package blue.contract.simulator.utils
Class CustomFileSystem
java.lang.Object
blue.contract.simulator.utils.CustomFileSystem
- All Implemented Interfaces:
org.graalvm.polyglot.io.FileSystem
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckAccess(Path path, Set<? extends AccessMode> modes, LinkOption... linkOptions) voidcopy(Path source, Path target, CopyOption... options) voidcreateDirectory(Path dir, FileAttribute<?>... attrs) voidbooleanisSameFile(Path path1, Path path2, LinkOption... options) voidmove(Path source, Path target, CopyOption... options) newByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) newDirectoryStream(Path dir, DirectoryStream.Filter<? super Path> filter) readAttributes(Path path, String attributes, LinkOption... options) readBlueResource(String resourceId) voidsetAttribute(Path path, String attribute, Object value, 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
createLink, createSymbolicLink, getEncoding, getMimeType, getPathSeparator, getTempDirectory, readSymbolicLink, setCurrentWorkingDirectory
-
Constructor Details
-
CustomFileSystem
public CustomFileSystem(org.graalvm.polyglot.io.FileSystem defaultFS)
-
-
Method Details
-
parsePath
- Specified by:
parsePathin interfaceorg.graalvm.polyglot.io.FileSystem
-
parsePath
- Specified by:
parsePathin interfaceorg.graalvm.polyglot.io.FileSystem
-
readBlueResource
- 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
-
createDirectory
- Specified by:
createDirectoryin interfaceorg.graalvm.polyglot.io.FileSystem- Throws:
IOException
-
delete
- Specified by:
deletein interfaceorg.graalvm.polyglot.io.FileSystem- Throws:
IOException
-
copy
- Specified by:
copyin interfaceorg.graalvm.polyglot.io.FileSystem- Throws:
IOException
-
move
- Specified by:
movein interfaceorg.graalvm.polyglot.io.FileSystem- Throws:
IOException
-
isSameFile
- Specified by:
isSameFilein interfaceorg.graalvm.polyglot.io.FileSystem- Throws:
IOException
-
checkAccess
public void checkAccess(Path path, Set<? extends AccessMode> modes, LinkOption... linkOptions) throws IOException - Specified by:
checkAccessin 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
- Specified by:
toAbsolutePathin interfaceorg.graalvm.polyglot.io.FileSystem
-
toRealPath
- Specified by:
toRealPathin interfaceorg.graalvm.polyglot.io.FileSystem- Throws:
IOException
-
getSeparator
- Specified by:
getSeparatorin interfaceorg.graalvm.polyglot.io.FileSystem
-