public class Filess extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
copy(InputStream is,
Path target,
CopyOption... options) |
static void |
copy(Path src,
OutputStream os) |
static void |
copy(Path src,
Path target,
CopyOption... options) |
static Path |
createDirectories(Path path) |
static Path |
createDirectory(Path path,
FileAttribute... attributes) |
static void |
delete(Path path) |
static void |
deleteIfExists(Path path) |
static FileStore |
getFileStore(Path path) |
static FileTime |
getLastModifiedTime(Path path,
LinkOption... options) |
static void |
move(Path src,
Path tgt,
CopyOption... options) |
static byte[] |
readAllBytes(Path path) |
static void |
setLastModifiedTime(Path path,
FileTime time) |
static long |
size(Path path) |
static Path |
write(Path path,
byte[] bytes,
OpenOption... options) |
public static long size(Path path)
public static void delete(Path path)
public static Path createDirectory(Path path, FileAttribute... attributes)
public static Path write(Path path, byte[] bytes, OpenOption... options)
public static byte[] readAllBytes(Path path)
public static void copy(Path src, Path target, CopyOption... options)
public static void copy(InputStream is, Path target, CopyOption... options)
public static void copy(Path src, OutputStream os)
public static void deleteIfExists(Path path)
public static void move(Path src, Path tgt, CopyOption... options)
public static FileTime getLastModifiedTime(Path path, LinkOption... options)
Copyright © 2015. All rights reserved.