Java Platform 1.2
Beta 4

Uses of Class
java.io.File

Packages that use File
com.sun.java.swing Provides a set of "lightweight" (all-Java
com.sun.java.swing.plaf Provides one interface and many abstract classes that Swing uses to provide its pluggable look-and-feel capabilities.  
java.io Provides for system input and output through data streams, serialization and the file system.  
java.util.jar Provides classes for creating and reading JAR files.  
java.util.zip Provides classes for computing checksums of data and for compressing and decompressing data using standard ZIP and GZIP formats.  
 

Uses of File in com.sun.java.swing
 

Methods in com.sun.java.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 com.sun.java.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)
           
 String JFileChooser.getName(File f)
           
 String JFileChooser.getDescription(File f)
           
 String JFileChooser.getTypeDescription(File f)
           
 Icon JFileChooser.getIcon(File f)
           
 boolean JFileChooser.isTraversable(File f)
           
 boolean JFileChooser.accept(File f)
           
 

Constructors in com.sun.java.swing with parameters of type File
JFileChooser.JFileChooser(File currentDirectory)
          Creates a JFileChooser using the given File as the path.
JFileChooser.JFileChooser(File currentDirectory, com.sun.java.swing.filechooser.FileSystemView fileSystemView)
          Creates a JFileChooser using the given current directory and FileSystemView
 

Uses of File in com.sun.java.swing.plaf
 

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

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 pattern, File directory)
           Creates an empty file in the specified directory, using the given pattern to generate its name.
static File File.createTempFile(String prefix)
          Creates an empty file in the default temporary-file directory, using the given pattern 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 pattern, File directory)
           Creates an empty file in the specified directory, using the given pattern 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.
 


Java Platform 1.2
Beta 4

Submit a bug or feature
Submit comments/suggestions about new javadoc look
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.
This documentation was generated with a post-Beta4 version of Javadoc.