Please note that this documentation is not final and is subject to change.

Java™ Platform
Standard Ed. 7

DRAFT ea-b76

Uses of Interface
java.nio.file.FileRef

Packages that use FileRef
Package Description
java.nio.file Defines interfaces and classes for the Java virtual machine to access files, file attributes, and file systems. 
java.nio.file.attribute Interfaces and classes providing access to file and file system attributes. 
java.nio.file.spi Service-provider classes for the java.nio.file package. 
java.util Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array). 
 

Uses of FileRef in java.nio.file
 

Classes in java.nio.file that implement FileRef
Modifier and Type Class and Description
 class Path
          A file reference that locates a file using a system dependent path.
 

Methods in java.nio.file with parameters of type FileRef
Modifier and Type Method and Description
static FileSystem FileSystems.newFileSystem(FileRef file, Map<String,?> env, ClassLoader loader)
          Constructs a new FileSystem to access the contents of a file as a file system.
static String Files.probeContentType(FileRef file)
          Probes the content type of a file.
 

Uses of FileRef in java.nio.file.attribute
 

Methods in java.nio.file.attribute with parameters of type FileRef
Modifier and Type Method and Description
static List<AclEntry> Attributes.getAcl(FileRef file)
          Reads a file's Access Control List (ACL).
static UserPrincipal Attributes.getOwner(FileRef file)
          Returns the owner of a file.
static BasicFileAttributes Attributes.readBasicFileAttributes(FileRef file, LinkOption... options)
          Reads the basic file attributes of a file.
static DosFileAttributes Attributes.readDosFileAttributes(FileRef file, LinkOption... options)
          Reads the DOS file attributes of a file.
static PosixFileAttributes Attributes.readPosixFileAttributes(FileRef file, LinkOption... options)
          Reads the POSIX file attributes of a file.
static void Attributes.setAcl(FileRef file, List<AclEntry> acl)
          Updates a file's Access Control List (ACL).
static void Attributes.setLastAccessTime(FileRef file, FileTime lastAccessTime)
          Updates a file's last access time attribute.
static void Attributes.setLastModifiedTime(FileRef file, FileTime lastModifiedTime)
          Updates a file's last modified time attribute.
static void Attributes.setOwner(FileRef file, UserPrincipal owner)
          Updates the file owner.
static void Attributes.setPosixFilePermissions(FileRef file, Set<PosixFilePermission> perms)
          Sets a file's POSIX permissions.
 

Uses of FileRef in java.nio.file.spi
 

Methods in java.nio.file.spi with parameters of type FileRef
Modifier and Type Method and Description
 FileSystem FileSystemProvider.newFileSystem(FileRef file, Map<String,?> env)
          Constructs a new FileSystem to access the contents of a file as a file system.
abstract  String FileTypeDetector.probeContentType(FileRef file)
          Probes the given file to guess its content type.
 

Uses of FileRef in java.util
 

Constructors in java.util with parameters of type FileRef
Constructor and Description
Scanner(FileRef source)
          Constructs a new Scanner that produces values scanned from the specified file.
Scanner(FileRef source, String charsetName)
          Constructs a new Scanner that produces values scanned from the specified file.
 


Java™ Platform
Standard Ed. 7

DRAFT ea-b76

Submit a bug or feature

Copyright 2009 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.