|
NIO2 API | |||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use FileRef | |
---|---|
org.classpath.icedtea.java.io | |
org.classpath.icedtea.java.nio.file | Define interfaces and classes for the Java virtual machine to access files, file attributes, and file systems. |
org.classpath.icedtea.java.nio.file.attribute | Interfaces and classes providing access to file and file system attributes. |
org.classpath.icedtea.java.nio.file.spi | Service-provider classes for the org.classpath.icedtea.java.nio.file package. |
org.classpath.icedtea.java.util |
Uses of FileRef in org.classpath.icedtea.java.io |
---|
Methods in org.classpath.icedtea.java.io with parameters of type FileRef | |
---|---|
static byte[] |
Inputs.readAllBytes(FileRef source)
Read all bytes from the specified file. |
static java.util.List<java.lang.String> |
Inputs.readAllLines(FileRef source)
Read all lines from the specified file. |
static java.util.List<java.lang.String> |
Inputs.readAllLines(FileRef source,
java.lang.String csn)
Read all lines from the specified file. |
static void |
Outputs.write(FileRef file,
byte[] bytes)
Writes a byte array to a file. |
static void |
Outputs.write(FileRef file,
byte[] bytes,
int off,
int len)
Writes a byte array to a file. |
static void |
Outputs.writeLines(FileRef file,
java.util.List<java.lang.String> lines)
Writes the given lines of text to the specified file. |
static void |
Outputs.writeLines(FileRef file,
java.util.List<java.lang.String> lines,
java.lang.String csn)
Writes the given lines of text to the specified file. |
static void |
Outputs.writeLines(FileRef file,
java.lang.String... lines)
Writes the given lines of text to the specified file. |
Uses of FileRef in org.classpath.icedtea.java.nio.file |
---|
Classes in org.classpath.icedtea.java.nio.file with type parameters of type FileRef | |
---|---|
interface |
FileAction<T extends FileRef>
An interface that is implemented by objects that operate on a file. |
interface |
FileVisitor<T extends FileRef>
A visitor of files. |
class |
SimpleFileVisitor<T extends FileRef>
A simple visitor of files with default behavior to visit all files and to re-throw I/O errors. |
Classes in org.classpath.icedtea.java.nio.file that implement FileRef | |
---|---|
class |
Path
A file reference that locates a file using a system dependent path. |
Methods in org.classpath.icedtea.java.nio.file with type parameters of type FileRef | ||
---|---|---|
static
|
DirectoryStreamFilters.newContentTypeFilter(java.lang.String type)
Constructs a directory stream filter that filters directory entries by their MIME content type. |
Methods in org.classpath.icedtea.java.nio.file with parameters of type FileRef | |
---|---|
boolean |
FileRef.isSameFile(FileRef other)
Tests if the file referenced by this object is the same file referenced by another object. |
static FileSystem |
FileSystems.newFileSystem(FileRef file,
java.util.Map<java.lang.String,?> env,
java.lang.ClassLoader loader)
Constructs a new FileSystem to access the contents of a file as a
file system. |
static java.lang.String |
Files.probeContentType(FileRef file)
Probes the content type of a file. |
Uses of FileRef in org.classpath.icedtea.java.nio.file.attribute |
---|
Methods in org.classpath.icedtea.java.nio.file.attribute with parameters of type FileRef | |
---|---|
static java.util.List<AclEntry> |
Attributes.getAcl(FileRef file)
Reads a file's Access Control List (ACL). |
static java.lang.Object |
Attributes.getAttribute(FileRef file,
java.lang.String attribute,
LinkOption... options)
Reads the value of a file attribute. |
static UserPrincipal |
Attributes.getOwner(FileRef file)
Returns the owner of a file. |
static java.util.Map<java.lang.String,?> |
Attributes.readAttributes(FileRef file,
java.lang.String attributes,
LinkOption... options)
Reads a set of file attributes as a bulk operation. |
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,
java.util.List<AclEntry> acl)
Updates a file's Access Control List (ACL). |
static void |
Attributes.setAttribute(FileRef file,
java.lang.String attribute,
java.lang.Object value)
Sets the value of a file attribute. |
static void |
Attributes.setLastAccessTime(FileRef file,
long lastAccessTime,
java.util.concurrent.TimeUnit unit)
Updates the value of a file's last access time attribute. |
static void |
Attributes.setLastModifiedTime(FileRef file,
long lastModifiedTime,
java.util.concurrent.TimeUnit unit)
Updates the value of 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,
java.util.Set<PosixFilePermission> perms)
Sets a file's POSIX permissions. |
Uses of FileRef in org.classpath.icedtea.java.nio.file.spi |
---|
Classes in org.classpath.icedtea.java.nio.file.spi that implement FileRef | |
---|---|
class |
AbstractPath
Base implementation class for a Path . |
Methods in org.classpath.icedtea.java.nio.file.spi with parameters of type FileRef | |
---|---|
FileSystem |
FileSystemProvider.newFileSystem(FileRef file,
java.util.Map<java.lang.String,?> env)
Constructs a new FileSystem to access the contents of a file as a
file system. |
abstract java.lang.String |
FileTypeDetector.probeContentType(FileRef file)
Probes the given file to guess its content type. |
Uses of FileRef in org.classpath.icedtea.java.util |
---|
Constructors in org.classpath.icedtea.java.util with parameters of type FileRef | |
---|---|
Scanner(FileRef source)
Constructs a new Scanner that produces values scanned
from the specified file. |
|
Scanner(FileRef source,
java.lang.String charsetName)
Constructs a new Scanner that produces values scanned
from the specified file. |
|
NIO2 API | |||||||||
PREV NEXT | FRAMES NO FRAMES |
Copyright 2010 Sun Microsystems, Inc. All rights reserved. Use is subject to the terms of the GNU General Public License.