Uses of Class java.io.File

Uses in package javax.imageio

Methods with parameter type java.io.File

BufferedImage
ImageIO.read(File input)
Create a buffered image from a file.
void
ImageIO.setCacheDirectory(File cacheDirectory)
Set the directory to be used for caching image data.
boolean
ImageIO.write(RenderedImage im, String formatName, File output)
Write an image to a file using a registered writer that supports the given format, overwriting the file if it already exists.

Methods with return type java.io.File

File
Retrieve the current cache directory.

Uses in package java.util.zip

Constructors with parameter type java.io.File

Opens a Zip file reading the given File.
ZipFile.ZipFile(File file, int mode)
Opens a Zip file reading the given File in the given mode.

Uses in package java.awt

Methods with parameter type java.io.File

Font
Font.createFont(int fontFormat, File file)
Creates a new font from a File object.
void
Launch the edit command to edit this file.
void
Launches the Desktop default application to open the given File.
void
Launch the print program to print this file.

Uses in package java.util

Constructors with parameter type java.io.File

Constructs a new Formatter using the default locale and character set, with the specified file as the output stream.
Formatter.Formatter(File file, String charset)
Constructs a new Formatter using the default locale, with the specified file as the output stream and the supplied character set.
Formatter.Formatter(File file, String charset, Locale loc)
Constructs a new Formatter using the specified file as the output stream with the supplied character set and locale.

Uses in package javax.imageio.stream

Constructors with parameter type java.io.File

Uses in package javax.sound.sampled.spi

Methods with parameter type java.io.File

AudioFileFormat
Return the format of the given file as deduced by this provider.
AudioInputStream
Return an AudioInputStream for the given file.
int
Write audio data to a file.

Uses in package javax.swing.plaf.multi

Methods with parameter type java.io.File

void
Calls the FileChooserUI.ensureFileIsVisible(JFileChooser,File) method for all the UI delegates managed by this MultiFileChooserUI.

Uses in package javax.swing.plaf

Methods with parameter type java.io.File

void
Ensures that a specified file is visible in the JFileChooser

Uses in package javax.xml.parsers

Methods with parameter type java.io.File

Document
Parse the specified file and return a DOM Document.
void
Parse the content of the specified file, reporting SAX1 events to the given handler.
void
Parse the content of the specified file, reporting SAX2 events to the given handler.

Uses in package java.io

Constructors with parameter type java.io.File

File.File(File directory, String name)
This method initializes a new File object to represent a file in the specified directory.
This method initializes a FileInputStream to read from the specified File object.
This method initializes a FileOutputStream object to write to the specified File object.
FileOutputStream.FileOutputStream(File file, boolean append)
This method initializes a FileOutputStream object to write to the specified File object.
This method initializes a FileReader instance to read from the specified File object.
This method initializes a new FileWriter object to write to the specified File object.
FileWriter.FileWriter(File file, boolean append)
This method initializes a new FileWriter object to write to the specified File object.
This method initializes a new PrintStream object to write to the specified output File.
This method initializes a new PrintStream object to write to the specified output File.
This initializes a new PrintWriter object to write to the specified file.
This initializes a new PrintWriter object to write to the specified file.
This method initializes a new instance of RandomAccessFile to read from the specified File object with the specified access mode.

Methods with parameter type java.io.File

boolean
This method determines whether or not a given pathname should be included in a pathname listing.
boolean
This method determines whether or not a given file should be included in a directory listing.
int
This method compares the specified File to this one to test for equality.
File
File.createTempFile(String prefix, String suffix, File directory)
This method creates a temporary file in the specified directory.
boolean
This method renames the file represented by this object to the path of the file represented by the argument File.

Methods with return type java.io.File

File
File.createTempFile(String prefix, String suffix)
This method creates a temporary file in the system temporary directory.
File
File.createTempFile(String prefix, String suffix, File directory)
This method creates a temporary file in the specified directory.
File
This method returns a File object representing the absolute path of this object.
File
This method returns a File object representing the canonical path of this object.
File
This method returns a File object representing the parent file of this one.
File[]
This method returns an array of File objects representing all the files in the directory represented by this object.
File[]
This method returns an array of File objects representing all the files in the directory represented by this object.
File[]
This method returns an array of File objects representing all the files in the directory represented by this object.
File[]
This method returns an array of filesystem roots.

Uses in package javax.sound.midi

Methods with parameter type java.io.File

MidiFileFormat
Read a MidiFileFormat object from the given file.
Sequence
Read a Sequence object from the given file.
Soundbank
Read a Soundbank object from the given file.
int
MidiSystem.write(Sequence in, int fileType, File out)
Write a sequence to a file using a specific MIDI file format.

Uses in package javax.xml.transform.stream

Constructors with parameter type java.io.File

Constructor with a system ID specified as a File object.
Constructor with a system ID specified as a File reference.

Methods with parameter type java.io.File

void
Sets the system ID from a File reference.
void
Sets the system ID using a File reference.

Uses in package java.awt.peer

Methods with parameter type java.io.File

void
void
void

Uses in package javax.swing.filechooser

Methods with parameter type java.io.File

boolean
Returns true if the specified file matches the filter, and false otherwise.
File
Creates a new file object with the given name in the specified directory.
File
DOCUMENT ME!
File
Creates a new folder with a unique name in the specified directory and returns a File object representing the new directory.
File
FileSystemView.getChild(File parent, String fileName)
DOCUMENT ME!
String
Returns a description for the specified file.
File[]
FileSystemView.getFiles(File dir, boolean useFileHiding)
Returns an array containing the files in the given directory.
Icon
Returns an Icon to represent the specified file.
String
Returns the name for the specified file.
File
Returns the parent directory for the given file/directory.
String
Returns the name of a file as it would be displayed by the underlying system.
Icon
Returns the icon that would be displayed for the given file by the underlying system.
String
Returns the type description of a file that would be displayed by the underlying system.
String
Returns a description for the type of the specified file.
boolean
DOCUMENT ME!
boolean
Returns true if the given directory represents a disk drive, and false otherwise.
boolean
Returns true if f is a file or directory, and false otherwise.
boolean
Returns true if the given directory is a file system root, and false otherwise.
boolean
Returns true if the given directory represents a floppy drive, and false otherwise.
boolean
Returns true if the given file is hidden, and false otherwise.
boolean
Returns true if folder is the parent of file, and false otherwise.
boolean
DOCUMENT ME!
Boolean
Returns true if the file is traversable, and false otherwise.
Boolean
Returns Boolean.TRUE if the given directory is traversable, and Boolean.FALSE if it is not.

Methods with return type java.io.File

File
Creates a new file object with the given name in the specified directory.
File
Creates a new file object from the specified path.
File
DOCUMENT ME!
File
Creates a new folder with a unique name in the specified directory and returns a File object representing the new directory.
File
FileSystemView.getChild(File parent, String fileName)
DOCUMENT ME!
File
Returns the default directory.
File[]
FileSystemView.getFiles(File dir, boolean useFileHiding)
Returns an array containing the files in the given directory.
File
Returns the home directory for the current user.
File
Returns the parent directory for the given file/directory.
File[]
Returns an array containing the file system roots.

Uses in package java.lang

Methods with parameter type java.io.File

ProcessBuilder
Sets the working directory to that specified.
Process
Runtime.exec(String cmdline, String[] env, File dir)
Create a new subprocess with the specified command line, environment, and working directory.
Process
Runtime.exec(String[] cmd, String[] env, File dir)
Create a new subprocess with the specified command line, already tokenized, and the specified environment and working directory.

Methods with return type java.io.File

File
Returns the working directory of the process.

Uses in package javax.swing

Constructors with parameter type java.io.File

JFileChooser.JFileChooser(File currentDirectory)
Creates a new JFileChooser object.
JFileChooser.JFileChooser(File currentDirectory, FileSystemView fsv)
Creates a new JFileChooser object.

Methods with parameter type java.io.File

boolean
Returns true if the file is accepted by the current file filter.
void
Ensures the the specified file is visible (this is handled by the UI delegate).
String
Returns the description of the file, generated by the current (or default) FileView.
Icon
Returns the icon provided by the current (or default) FileView.
String
Returns the name of the file, generated by the current (or default) FileView.
String
Returns the type description for the file, generated by the current (or default) FileView.
boolean
Returns true if the file is traversable, and false otherwise.
void
Sets the current directory and fires a PropertyChangeEvent (with the property name DIRECTORY_CHANGED_PROPERTY) to all registered listeners.
void
Sets the selected file and sends a PropertyChangeEvent to all registered listeners.
void
Sets the selected files and sends a PropertyChangeEvent (with the name SELECTED_FILES_CHANGED_PROPERTY) to all registered listeners.

Methods with return type java.io.File

File
Returns the current directory.
File
Returns the selected file, if there is one.
File[]
Returns the selected file or files in an array.

Uses in package javax.sound.midi.spi

Methods with parameter type java.io.File

MidiFileFormat
Read a MidiFileFormat from the given stream.
Sequence
Read a Sequence from the given stream.
Soundbank
Get a Soundbank from the given File.
int
MidiFileWriter.write(Sequence in, int fileType, File out)
Write a sequence to a file using the specified MIDI file type.

Uses in package javax.swing.plaf.basic

Methods with parameter type java.io.File

boolean
Returns true always, as all files are accepted by this filter.
void
Adds an icon to the cache, associating it with the given file/directory.
void
NOT YET IMPLEMENTED.
Icon
Retrieves the icon associated with the specified file/directory, if there is one.
String
Returns a description of the given file/directory.
Icon
Returns an icon appropriate for the given file or directory.
String
Returns the name for the given file/directory.
String
Returns a localised description for the type of file/directory.
Boolean
Returns Boolean.TRUE if the given file/directory is hidden, and Boolean.FALSE otherwise.
boolean
Less than, determine the relative order in the list of two files for sorting purposes.
boolean
Renames a file - However, does not re-sort the list or replace the old file with the new one in the list.
void
Sets the current directory.

Methods with return type java.io.File

File
Returns the current directory.

Uses in package java.util.jar

Constructors with parameter type java.io.File

Creates a new JarFile.
JarFile.JarFile(File file, boolean verify)
Creates a new JarFile.
JarFile.JarFile(File file, boolean verify, int mode)
Creates a new JarFile with the indicated mode.

Uses in package javax.xml.validation

Methods with parameter type java.io.File

Schema
Returns a schema based on the specified source file.

Uses in package javax.imageio.spi

Methods with parameter type java.io.File

ImageInputStream
ImageInputStreamSpi.createInputStreamInstance(Object input, boolean useCache, File cacheDir)
ImageOutputStream
ImageOutputStreamSpi.createOutputStreamInstance(Object output, boolean useCache, File cacheDir)

Uses in package javax.sound.sampled

Methods with parameter type java.io.File

AudioFileFormat
Return the file format of a given File.
AudioInputStream
Return an audio input stream for the file.
int
Write an audio input stream to the given file, using the specified audio file format.