Package | Description |
---|---|
nl.esciencecenter.octopus.engine.files | |
nl.esciencecenter.octopus.files |
This package contains classes and interfaces which are used to provide advanced input
and output.
|
Modifier and Type | Method and Description |
---|---|
Path |
FilesEngine.createDirectories(Path dir,
Set<PosixFilePermission> permissions) |
Path |
FilesAdaptor.createDirectories(Path dir,
Set<PosixFilePermission> permissions)
Creates a directory by creating all nonexistent parent directories first.
|
Path |
FilesEngine.createDirectory(Path dir,
Set<PosixFilePermission> permissions) |
Path |
FilesAdaptor.createDirectory(Path dir,
Set<PosixFilePermission> permissions)
Creates a new directory.
|
Path |
FilesEngine.createFile(Path path,
Set<PosixFilePermission> permissions) |
Path |
FilesAdaptor.createFile(Path path,
Set<PosixFilePermission> permissions)
Creates a new and empty file, failing if the file already exists.
|
SeekableByteChannel |
FilesEngine.newByteChannel(Path path,
Set<PosixFilePermission> permissions,
OpenOption... options) |
SeekableByteChannel |
FilesAdaptor.newByteChannel(Path path,
Set<PosixFilePermission> permissions,
OpenOption... options)
Opens or creates a file, returning a seekable byte channel to access the
file.
|
void |
FilesEngine.setPosixFilePermissions(Path path,
Set<PosixFilePermission> permissions) |
Path |
FilesAdaptor.setPosixFilePermissions(Path path,
Set<PosixFilePermission> permissions)
Sets a file's POSIX permissions.
|
Modifier and Type | Method and Description |
---|---|
static PosixFilePermission |
PosixFilePermission.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PosixFilePermission[] |
PosixFilePermission.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
Set<PosixFilePermission> |
FileAttributes.permissions() |
Modifier and Type | Method and Description |
---|---|
Path |
Files.createDirectories(Path dir,
Set<PosixFilePermission> permissions)
Creates a directory by creating all nonexistent parent directories first.
|
Path |
Files.createDirectory(Path dir,
Set<PosixFilePermission> permissions)
Creates a new directory.
|
Path |
Files.createFile(Path path,
Set<PosixFilePermission> permissions)
Creates a new and empty file, failing if the file already exists.
|
SeekableByteChannel |
Files.newByteChannel(Path path,
Set<PosixFilePermission> permissions,
OpenOption... options)
Opens or creates a file, returning a seekable byte channel to access the
file.
|
void |
Files.setPosixFilePermissions(Path path,
Set<PosixFilePermission> permissions)
Sets a file's POSIX permissions.
|