Spec-Zone .ru
спецификации, руководства, описания, API
|
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |
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 |
---|
Modifier and Type | Class and Description |
---|---|
class |
Path
A file reference that locates a file using a system dependent path. |
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 |
---|
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 |
---|
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 |
---|
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-b118 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Copyright © 1993, 2010, Oracle Corporation. All rights reserved.