NIO2 API

Uses of Interface
org.classpath.icedtea.java.nio.file.FileRef

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 List<String> Inputs.readAllLines(FileRef source)
          Read all lines from the specified file.
static List<String> Inputs.readAllLines(FileRef source, 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, List<String> lines)
          Writes the given lines of text to the specified file.
static void Outputs.writeLines(FileRef file, List<String> lines, String csn)
          Writes the given lines of text to the specified file.
static void Outputs.writeLines(FileRef file, 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
<T extends FileRef>
DirectoryStream.Filter<T>
DirectoryStreamFilters.newContentTypeFilter(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, 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 org.classpath.icedtea.java.nio.file.attribute
 

Methods in org.classpath.icedtea.java.nio.file.attribute with parameters of type FileRef
static List<AclEntry> Attributes.getAcl(FileRef file)
          Reads a file's Access Control List (ACL).
static Object Attributes.getAttribute(FileRef file, String attribute, LinkOption... options)
          Reads the value of a file attribute.
static UserPrincipal Attributes.getOwner(FileRef file)
          Returns the owner of a file.
static Map<String,?> Attributes.readAttributes(FileRef file, 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, List<AclEntry> acl)
          Updates a file's Access Control List (ACL).
static void Attributes.setAttribute(FileRef file, String attribute, Object value)
          Sets the value of a file attribute.
static void Attributes.setLastAccessTime(FileRef file, long lastAccessTime, TimeUnit unit)
          Updates the value of a file's last access time attribute.
static void Attributes.setLastModifiedTime(FileRef file, long lastModifiedTime, 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, 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, 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 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, String charsetName)
           Constructs a new Scanner that produces values scanned from the specified file.
 


NIO2 API

Copyright © 2007, 2011, Oracle and/or its affiliates. All rights reserved.