Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module : java.base - Package : java.nio.file
Version documentée : Java SE 17

Classe « Files »

Informations générales

Héritage

java.lang.Object
    java.nio.file.Files

Définition

public final class Files extends java.lang.Object

Description

A venir.

Liste des attributs

Tous les attributs Attributs d'instance Attributs statiques Attributs dépréciés
QualificateursTypeNomDescription

Liste des constructeurs

Constructeurs Constructeurs dépréciés
ConstructeurDescription

Liste des propriétés (getters/setters)

Propriétés Propriétés dépréciées
QualificateursTypeNomR/W

Propriétés héritées de la classe java.lang.Object

class

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes concrètes Méthodes abstraites Méthodes dépréciées
QualificateursType de retourPrototype de la méthodeDescription
public static long copy( InputStream arg0, Path arg1, CopyOption[] arg2 )
public static Path copy( Path arg0, Path arg1, CopyOption[] arg2 )
public static long copy( Path source, OutputStream out )
public static Path createDirectories( Path dir, FileAttribute<?>[] attrs )
public static Path createDirectory( Path dir, FileAttribute<?>[] attrs )
public static Path createFile( Path path, FileAttribute<?>[] attrs )
public static Path createLink( Path link, Path existing )
public static Path createSymbolicLink( Path link, Path target, FileAttribute<?>[] attrs )
public static Path createTempDirectory( String prefix, FileAttribute<?>[] attrs )
public static Path createTempDirectory( Path dir, String prefix, FileAttribute<?>[] attrs )
public static Path createTempFile( String prefix, String suffix, FileAttribute<?>[] attrs )
public static Path createTempFile( Path dir, String prefix, String suffix, FileAttribute<?>[] attrs )
public static void delete( Path path )
public static boolean deleteIfExists( Path path )
public static boolean exists( Path path, LinkOption[] options )
public static Stream<java.nio.file.Path> find( Path start, int maxDepth, BiPredicate<java.nio.file.Path, java.nio.file.attribute.BasicFileAttributes> matcher, FileVisitOption[] options )
public static Object getAttribute( Path path, String attribute, LinkOption[] options )
public static <V> V getFileAttributeView( Path path, Class<V> type, LinkOption[] options )
public static FileStore getFileStore( Path path )
public static FileTime getLastModifiedTime( Path path, LinkOption[] options )
public static UserPrincipal getOwner( Path path, LinkOption[] options )
public static Set<java.nio.file.attribute.PosixFilePermission> getPosixFilePermissions( Path path, LinkOption[] options )
public static boolean isDirectory( Path path, LinkOption[] options )
public static boolean isExecutable( Path path )
public static boolean isHidden( Path path )
public static boolean isReadable( Path path )
public static boolean isRegularFile( Path path, LinkOption[] options )
public static boolean isSameFile( Path path, Path path2 )
public static boolean isSymbolicLink( Path path )
public static boolean isWritable( Path path )
public static Stream<java.lang.String> lines( Path path )
public static Stream<java.lang.String> lines( Path path, Charset cs )
public static Stream<java.nio.file.Path> list( Path dir )
public static long mismatch( Path path, Path path2 )
public static Path move( Path source, Path target, CopyOption[] options )
public static BufferedReader newBufferedReader( Path path, Charset cs )
public static BufferedReader newBufferedReader( Path path )
public static BufferedWriter newBufferedWriter( Path path, OpenOption[] options )
public static BufferedWriter newBufferedWriter( Path path, Charset cs, OpenOption[] options )
public static SeekableByteChannel newByteChannel( Path path, OpenOption[] options )
public static SeekableByteChannel newByteChannel( Path path, Set<? extends java.nio.file.OpenOption> options, FileAttribute<?>[] attrs )
public static DirectoryStream<java.nio.file.Path> newDirectoryStream( Path dir, String glob )
public static DirectoryStream<java.nio.file.Path> newDirectoryStream( Path dir )
public static DirectoryStream<java.nio.file.Path> newDirectoryStream( Path dir, Filter<? super java.nio.file.Path> filter )
public static InputStream newInputStream( Path path, OpenOption[] options )
public static OutputStream newOutputStream( Path path, OpenOption[] options )
public static boolean notExists( Path path, LinkOption[] options )
public static String probeContentType( Path path )
public static byte[] readAllBytes( Path path )
public static List<java.lang.String> readAllLines( Path path )
public static List<java.lang.String> readAllLines( Path path, Charset cs )
public static <A> A readAttributes( Path arg0, Class<A> arg1, LinkOption[] arg2 )
public static Map<java.lang.String, java.lang.Object> readAttributes( Path arg0, String arg1, LinkOption[] arg2 )
public static String readString( Path path, Charset cs )
public static String readString( Path path )
public static Path readSymbolicLink( Path link )
public static Path setAttribute( Path path, String attribute, Object value, LinkOption[] options )
public static Path setLastModifiedTime( Path path, FileTime time )
public static Path setOwner( Path path, UserPrincipal owner )
public static Path setPosixFilePermissions( Path path, Set<java.nio.file.attribute.PosixFilePermission> perms )
public static long size( Path path )
public static Stream<java.nio.file.Path> walk( Path start, int maxDepth, FileVisitOption[] options )
public static Stream<java.nio.file.Path> walk( Path start, FileVisitOption[] options )
public static Path walkFileTree( Path start, FileVisitor<? super java.nio.file.Path> visitor )
public static Path walkFileTree( Path start, Set<java.nio.file.FileVisitOption> options, int maxDepth, FileVisitor<? super java.nio.file.Path> visitor )
public static Path write( Path path, Iterable<? extends java.lang.CharSequence> lines, Charset cs, OpenOption[] options )
public static Path write( Path arg0, byte[] arg1, OpenOption[] arg2 )
public static Path write( Path arg0, Iterable<? extends java.lang.CharSequence> arg1, OpenOption[] arg2 )
public static Path writeString( Path path, CharSequence csq, OpenOption[] options )
public static Path writeString( Path path, CharSequence csq, Charset cs, OpenOption[] options )

Méthodes héritées de la classe java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait