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.
|
nl.esciencecenter.octopus.util |
Modifier and Type | Method and Description |
---|---|
SeekableByteChannel |
FilesEngine.newByteChannel(Path path,
OpenOption... options) |
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.
|
OutputStream |
FilesEngine.newOutputStream(Path path,
OpenOption... options) |
OutputStream |
FilesAdaptor.newOutputStream(Path path,
OpenOption... options)
Opens or creates a file, returning an output stream that may be used to
write bytes to the file.
|
Modifier and Type | Method and Description |
---|---|
static OpenOption |
OpenOption.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OpenOption[] |
OpenOption.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
SeekableByteChannel |
Files.newByteChannel(Path path,
OpenOption... options)
Opens or creates a file, returning a seekable byte channel to access the
file.
|
SeekableByteChannel |
Files.newByteChannel(Path path,
Set<PosixFilePermission> permissions,
OpenOption... options)
Opens or creates a file, returning a seekable byte channel to access the
file.
|
OutputStream |
Files.newOutputStream(Path path,
OpenOption... options)
Opens or creates a file, returning an output stream that may be used to
write bytes to the file.
|
Modifier and Type | Method and Description |
---|---|
static BufferedWriter |
FileUtils.newBufferedWriter(Octopus octopus,
Path path,
Charset cs,
OpenOption... options)
Opens or creates a file for writing, returning a BufferedWriter that may
be used to write text to the file in an efficient manner.
|
static Path |
FileUtils.write(Octopus octopus,
Path path,
byte[] bytes,
OpenOption... options)
Writes bytes to a file.
|
static Path |
FileUtils.write(Octopus octopus,
Path path,
Iterable<? extends CharSequence> lines,
Charset cs,
OpenOption... options)
Write lines of text to a file.
|