Java Platform 1.2

Uses of Class
java.io.File

Packages that use File
java.io Provides for system input and output through data streams, serialization and the file system. 
java.util.jar Provides classes for reading and writing the JAR (Java ARchive) file format, which is based on the standard ZIP file format with an optional manifest file. 
java.util.zip Provides classes for reading and writing the standard ZIP and GZIP file formats. 
javax.swing Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms. 
javax.swing.filechooser Contains classes and interfaces used by the JFileChooser component. 
javax.swing.plaf Provides one interface and many abstract classes that Swing uses to provide its pluggable look-and-feel capabilities. 
javax.swing.plaf.basic Provides user interface objects built according to the Basic look-and-feel. 
javax.swing.plaf.metal Provides user interface objects built according to the ``metal'' look-and-feel. 
javax.swing.plaf.multi The multiplexing look and feel allows users to combine auxiliary look and feels with the default look and feel. 
 

Uses of File in java.io
 

Methods in java.io that return File
 File File.getParentFile()
          Returns the abstract pathname of this abstract pathname's parent, or null if this pathname does not name a parent directory.
 File File.getAbsoluteFile()
          Returns the absolute form of this abstract pathname.
 File File.getCanonicalFile()
          Returns the canonical form of this abstract pathname.
 File[] File.listFiles()
          Returns an array of abstract pathnames denoting the files in the directory denoted by this abstract pathname.
 File[] File.listFiles(FilenameFilter filter)
          Returns an array of abstract pathnames denoting the files and directories in the directory denoted by this abstract pathname that satisfy the specified filter.
 File[] File.listFiles(FileFilter filter)
          Returns an array of abstract pathnames denoting the files and directories in the directory denoted by this abstract pathname that satisfy the specified filter.
static File[] File.listRoots()
          List the available filesystem roots.
static File File.createTempFile(String prefix, String suffix, File directory)
           Creates a new empty file in the specified directory, using the given prefix and suffix strings to generate its name.
static File File.createTempFile(String prefix, String suffix)
          Creates an empty file in the default temporary-file directory, using the given prefix and suffix to generate its name.
 

Methods in java.io with parameters of type File
 boolean File.renameTo(File dest)
          Renames the file denoted by this abstract pathname.
static File File.createTempFile(String prefix, String suffix, File directory)
           Creates a new empty file in the specified directory, using the given prefix and suffix strings to generate its name.
 int File.compareTo(File pathname)
          Compares two abstract pathnames lexicographically.
 boolean FileFilter.accept(File pathname)
          Tests whether or not the specified abstract pathname should be included in a pathname list.
 boolean FilenameFilter.accept(File dir, String name)
          Tests if a specified file should be included in a file list.
 

Constructors in java.io with parameters of type File
FileWriter.FileWriter(File file)
           
FileInputStream.FileInputStream(File file)
          Creates a FileInputStream by opening a connection to an actual file, the file named by the File object file in the file system.
FileReader.FileReader(File file)
           
FileOutputStream.FileOutputStream(File file)
          Creates a file output stream to write to the file represented by the specified File object.
RandomAccessFile.RandomAccessFile(File file, String mode)
          Creates a random access file stream to read from, and optionally to write to, the file specified by the File argument.
File.File(File parent, String child)
          Creates a new File instance from a parent abstract pathname and a child pathname string.
 

Uses of File in java.util.jar
 

Constructors in java.util.jar with parameters of type File
JarFile.JarFile(File file)
          Creates a new JarFile to read from the specified File object.
JarFile.JarFile(File file, boolean verify)
          Creates a new JarFile to read from the specified File object.
 

Uses of File in java.util.zip
 

Constructors in java.util.zip with parameters of type File
ZipFile.ZipFile(File file)
          Opens a ZIP file for reading given the specified File object.
 

Uses of File in javax.swing
 

Methods in javax.swing that return File
 File JFileChooser.getSelectedFile()
          Returns the selected file.
 File[] JFileChooser.getSelectedFiles()
          Returns a list of selected files if the filechooser is set to allow multi-selection.
 File JFileChooser.getCurrentDirectory()
          Returns the current directory.
 

Methods in javax.swing with parameters of type File
 void JFileChooser.setSelectedFile(File selectedFile)
          Sets the selected file.
 void JFileChooser.setSelectedFiles(File[] selectedFiles)
          Sets the list of selected files if the filechooser is set to allow multi-selection.
 void JFileChooser.setCurrentDirectory(File dir)
          Sets the current directory.
 void JFileChooser.ensureFileIsVisible(File f)
          Make sure that the specified file is viewable, and not hidden.
 String JFileChooser.getName(File f)
          Returns the file name.
 String JFileChooser.getDescription(File f)
          Returns the file description.
 String JFileChooser.getTypeDescription(File f)
          Returns the file type.
 Icon JFileChooser.getIcon(File f)
          Returns the icon for this file or type of file, depending on the system.
 boolean JFileChooser.isTraversable(File f)
          Returns true if the file (directory) can be visited.
 boolean JFileChooser.accept(File f)
          Returns true if the file should be displayed.
 

Constructors in javax.swing with parameters of type File
JFileChooser.JFileChooser(File currentDirectory)
          Creates a JFileChooser using the given File as the path.
JFileChooser.JFileChooser(File currentDirectory, FileSystemView fsv)
          Creates a JFileChooser using the given current directory and FileSystemView
 

Uses of File in javax.swing.filechooser
 

Methods in javax.swing.filechooser that return File
abstract  File FileSystemView.createNewFolder(File containingDir)
          creates a new folder with a default folder name.
abstract  File[] FileSystemView.getRoots()
          Returns all root partitians on this system.
 File FileSystemView.getHomeDirectory()
           
 File FileSystemView.createFileObject(File dir, String filename)
          Returns a File object constructed in dir from the given filename.
 File FileSystemView.createFileObject(String path)
          Returns a File object constructed from the given path string.
 File[] FileSystemView.getFiles(File dir, boolean useFileHiding)
          gets the list of shown (i.e.
 File FileSystemView.getParentDirectory(File dir)
          Returns the parent directory of dir.
 

Methods in javax.swing.filechooser with parameters of type File
abstract  boolean FileSystemView.isRoot(File f)
          Determines if the given file is a root partition or drive.
abstract  File FileSystemView.createNewFolder(File containingDir)
          creates a new folder with a default folder name.
abstract  boolean FileSystemView.isHiddenFile(File f)
          Returns whether a file is hidden or not.
 File FileSystemView.createFileObject(File dir, String filename)
          Returns a File object constructed in dir from the given filename.
 File[] FileSystemView.getFiles(File dir, boolean useFileHiding)
          gets the list of shown (i.e.
 File FileSystemView.getParentDirectory(File dir)
          Returns the parent directory of dir.
abstract  String FileView.getName(File f)
          The name of the file.
abstract  String FileView.getDescription(File f)
          A human readable description of the file.
abstract  String FileView.getTypeDescription(File f)
          A human readable description of the type of the file.
abstract  Icon FileView.getIcon(File f)
          The icon that represents this file in the JFileChooser.
abstract  Boolean FileView.isTraversable(File f)
          Whether the directory is traversable or not.
abstract  boolean FileFilter.accept(File f)
          Whether the given file is accepted by this filter.
 

Uses of File in javax.swing.plaf
 

Methods in javax.swing.plaf with parameters of type File
abstract  void FileChooserUI.ensureFileIsVisible(JFileChooser fc, File f)
           
 

Uses of File in javax.swing.plaf.basic
 

Methods in javax.swing.plaf.basic with parameters of type File
protected  boolean BasicDirectoryModel.lt(File a, File b)
           
 void BasicFileChooserUI.ensureFileIsVisible(JFileChooser fc, File f)
           
 boolean BasicFileChooserUI.AcceptAllFileFilter.accept(File f)
           
 String BasicFileChooserUI.BasicFileView.getName(File f)
           
 String BasicFileChooserUI.BasicFileView.getDescription(File f)
           
 String BasicFileChooserUI.BasicFileView.getTypeDescription(File f)
           
 Icon BasicFileChooserUI.BasicFileView.getCachedIcon(File f)
           
 void BasicFileChooserUI.BasicFileView.cacheIcon(File f, Icon i)
           
 Icon BasicFileChooserUI.BasicFileView.getIcon(File f)
           
 Boolean BasicFileChooserUI.BasicFileView.isTraversable(File f)
           
 Boolean BasicFileChooserUI.BasicFileView.isHidden(File f)
           
 

Uses of File in javax.swing.plaf.metal
 

Methods in javax.swing.plaf.metal with parameters of type File
 void MetalFileChooserUI.ensureFileIsVisible(JFileChooser fc, File f)
           
 

Uses of File in javax.swing.plaf.multi
 

Methods in javax.swing.plaf.multi with parameters of type File
 void MultiFileChooserUI.ensureFileIsVisible(JFileChooser a, File b)
          Call ensureFileIsVisible on each UI handled by this MultiUI.
 


Java Platform 1.2

Submit a bug or feature Version 1.2 of Java Platform API Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.