Package dev.gothickit.zenkit.vfs
Class VfsNode
java.lang.Object
dev.gothickit.zenkit.vfs.VfsNode
- All Implemented Interfaces:
NativeObject
-
Method Summary
Modifier and TypeMethodDescriptionchildren()@NotNull VfsNodestatic @NotNull VfsNodecreateDirectory(@NotNull String name) static @NotNull VfsNodecreateDirectory(@NotNull String name, @NotNull Date timestamp) static @NotNull VfsNodecreateFile(@NotNull String name, byte @NotNull [] content) static @NotNull VfsNodecreateFile(@NotNull String name, byte @NotNull [] content, @NotNull Date timestamp) static @Nullable VfsNodefromNativeHandle(com.sun.jna.Pointer handle) @Nullable VfsNode@NotNull com.sun.jna.PointerbooleanbooleanisFile()@NotNull Stringname()@NotNull NativeReadopen()boolean
-
Method Details
-
fromNativeHandle
@Contract("null -> null; !null -> new") @Nullable public static @Nullable VfsNode fromNativeHandle(com.sun.jna.Pointer handle) -
createFile
-
createFile
-
createDirectory
-
createDirectory
-
isFile
public boolean isFile() -
isDirectory
public boolean isDirectory() -
timestamp
-
name
-
get
-
children
-
create
-
remove
-
open
-
getNativeHandle
@NotNull public @NotNull com.sun.jna.Pointer getNativeHandle()- Specified by:
getNativeHandlein interfaceNativeObject
-