public final class Files_ extends Object
In most cases, the methods defined here will delegate to the associated file system provider to perform the file operations.
public static Path_ createDirectory__(Path dir, FileAttribute<?>... attrs)
public static Path createDirectory(@Nullable Path tgt, FileAttribute<?>... attrs)
public static Path createDirectory_(Path dir, FileAttribute<?>... attrs)
public static void createDirectories(@Nullable Path dir, FileAttribute<?>... attrs)
public static void createDirectories_(Path dir, FileAttribute<?>... attrs)
public static boolean exists_(Path path, LinkOption... options)
public static boolean exists(@Nullable Path path, LinkOption... options)
public static Path write(@Nullable Path path, @Nullable byte[] bytes, OpenOption... options)
public static Path write_(Path path, byte[] bytes, OpenOption... options)
public static DirectoryStream<Path> newDirectoryStream(@Nullable Path dir)
public static DirectoryStream<Path> newDirectoryStream_(Path dir)
public static DirectoryStream_<Path> newDirectoryStream__(Path dir)
public static boolean isDirectory_(Path path, LinkOption... options)
@Nullable public static FileTime getLastModifiedTime(@Nullable Path path, LinkOption... options)
public static FileTime getLastModifiedTime_(Path path, LinkOption... options)
public static FileTime getLastAccessTime_(Path path, LinkOption... options)
public static FileTime getCreationTime(@Nullable Path path, LinkOption... options)
public static FileTime getCreationTime_(Path path, LinkOption... options)
public static <A extends BasicFileAttributes> A readAttributes(@Nullable Path path, @Nullable Class<A> type, @Nullable LinkOption... options)
public static <A extends BasicFileAttributes> A readAttributes_(Path path, Class<A> type, LinkOption... options)
public static Map<String,Object> readAttributes(@Nullable Path path, @Nullable String attributes, LinkOption... options)
public static Map<String,Object> readAttributes_(Path path, String attributes, LinkOption... options)
public static Map_<String,Object> readAttributes__(Path path, String attributes, LinkOption... options)
public static byte[] readAllBytes_(Path path)
public static SeekableByteChannel newByteChannel(@Nullable Path path, @Nullable Set<StandardOpenOption> standardOpenOptions, FileAttribute<?>... attrs)
public static SeekableByteChannel newByteChannel_(Path path, Set<StandardOpenOption> standardOpenOptions, FileAttribute<?>... attrs)
public static SeekableByteChannel_ newByteChannel__(Path path, Set<StandardOpenOption> standardOpenOptions, FileAttribute<?>... attrs)
public static SeekableByteChannel newByteChannel(@Nullable Path path, OpenOption... options)
public static SeekableByteChannel newByteChannel_(Path path, OpenOption... options)
public static SeekableByteChannel_ newByteChannel__(Path path, OpenOption... options)
public static long size_(Path target)
public static Path copy_(Path src, Path tgt, CopyOption... options)
public static long copy_(Path source, OutputStream out)
public static long copy(@Nullable Path source, @Nullable OutputStream out)
public static void delete_(Path path)
public static void move(@Nullable Path src, @Nullable Path tgt, CopyOption... options)
public static void move_(Path src, Path tgt, CopyOption... options)
public static boolean deleteIfExists_(Path path)
public static boolean isSymbolicLink(Path path)
public static void setLastModifiedTime(@Nullable Path file, @Nullable FileTime past)
public static long copy(@Nullable InputStream is, @Nullable Path path, CopyOption... options)
public static long copy_(InputStream is, Path path, CopyOption... options)
public static InputStream newInputStream(Path jar, OpenOption... options)
public static Stream<String> lines(InputStream is, Charset cs)
Files.lines(Path, Charset)public static void unzipToPath(InputStream is, Path root)
public static boolean isEmpty_(Path dir)
public static boolean isRoot_(Path path)
public static boolean isHidden_(Path resolve)
public static UserPrincipal getOwner_(Path path, LinkOption... options)
public static void setOwner_(Path path, UserPrincipal user)
public static Path setAttribute_(Path path, String attribute, Object value, LinkOption... options)
public static <V extends FileAttributeView> Optional<V> getFileAttributeView_o(Path path, Class<V> type, LinkOption... options)
public static <V extends FileAttributeView> V getFileAttributeView_ot(Path path, Class<V> type, LinkOption... options)
public static void deleteRecursive_(Path path)
public static Stream<Path> walk_(Path start, FileVisitOption... options)
public static Stream<Path> walk(@Nullable Path start, FileVisitOption... options)
public static void copyRecursive_(Path src, Path target, CopyOption... options)
public static Path createSymbolicLink_(Path link, Path target, FileAttribute<?>... attrs)
public static Path createSymbolicLink(@Nullable Path link, @Nullable Path target, FileAttribute<?>... attrs)
public static Path createFile_(Path path, FileAttribute<?>... attrs)
public static Path createFile(@Nullable Path path, FileAttribute<?>... attrs)
public static OutputStream newOutputStream_(Path path, OpenOption... options)
public static OutputStream newOutputStream(@Nullable Path path, OpenOption... options)
Copyright © 2017. All rights reserved.