public interface MaridFiles
-
Method Summary
Static Methods
| Modifier and Type |
Method |
Description |
static long |
copy(@NotNull InputStream inputStream,
@NotNull Path path,
@NotNull CopyOption... options) |
|
static long |
copy(@NotNull Path path,
@NotNull OutputStream outputStream) |
|
static @NotNull Path |
copy(@NotNull Path source,
@NotNull Path target,
@NotNull CopyOption... options) |
|
static void |
createDirectories(@NotNull Path path,
@NotNull FileAttribute<?>... attributes) |
|
static void |
createDirectory(@NotNull Path path,
@NotNull FileAttribute<?>... attributes) |
|
static void |
delete(@NotNull Path path) |
|
static void |
deleteIfExists(@NotNull Path path) |
|
static void |
deleteRecursively(@NotNull Path path) |
|
static <T> T |
getWithDirectoryStream(@NotNull Path path,
@NotNull String glob,
@NotNull IOFunction<DirectoryStream<Path>,T> callback) |
|
static <T> T |
getWithDirectoryStream(@NotNull Path path,
@NotNull IOFunction<DirectoryStream<Path>,T> callback) |
|
static <T> T |
getWithDirectoryStream(@NotNull Path path,
DirectoryStream.Filter<Path> filter,
@NotNull IOFunction<DirectoryStream<Path>,T> callback) |
|
static @NotNull Stream<String> |
lines(@NotNull Path path,
@NotNull Charset charset) |
|
static @NotNull Stream<Path> |
list(@NotNull Path path) |
|
static @NotNull Path |
move(@NotNull Path source,
@NotNull Path target,
@NotNull CopyOption... options) |
|
static @org.jetbrains.annotations.NotNull byte[] |
readAllBytes(@NotNull Path path) |
|
static @NotNull List<String> |
readLines(@NotNull Path path,
@NotNull Charset charset) |
|
static @NotNull String |
readString(@NotNull Path path,
@NotNull Charset charset) |
|
static long |
size(Path path) |
|
static Stream<Path> |
walk(@NotNull Path path,
int depth,
@NotNull FileVisitOption... options) |
|
-
Method Details
-
static long size(
Path path)
-
static void deleteRecursively(
@NotNull
@NotNull Path path)
-
static void delete(
@NotNull
@NotNull Path path)
-
static void deleteIfExists(
@NotNull
@NotNull Path path)
-
-
-
-
@NotNull
static @NotNull Stream<Path> list(
@NotNull
@NotNull Path path)
-
-
static long copy(
@NotNull
@NotNull Path path,
@NotNull
@NotNull OutputStream outputStream)
-
static long copy(
@NotNull
@NotNull InputStream inputStream,
@NotNull
@NotNull Path path,
@NotNull
@NotNull CopyOption... options)
-
@NotNull
static @NotNull Path copy(
@NotNull
@NotNull Path source,
@NotNull
@NotNull Path target,
@NotNull
@NotNull CopyOption... options)
-
@NotNull
static @NotNull Path move(
@NotNull
@NotNull Path source,
@NotNull
@NotNull Path target,
@NotNull
@NotNull CopyOption... options)
-
@NotNull
static @org.jetbrains.annotations.NotNull byte[] readAllBytes(
@NotNull
@NotNull Path path)
-
@NotNull
static @NotNull String readString(
@NotNull
@NotNull Path path,
@NotNull
@NotNull Charset charset)
-
@NotNull
static @NotNull List<String> readLines(
@NotNull
@NotNull Path path,
@NotNull
@NotNull Charset charset)
-
-
static void createDirectory(
@NotNull
@NotNull Path path,
@NotNull
@NotNull FileAttribute<?>... attributes)
-
static void createDirectories(
@NotNull
@NotNull Path path,
@NotNull
@NotNull FileAttribute<?>... attributes)