| Package | Description |
|---|---|
| java.awt |
Contains all of the classes for creating user interfaces and for painting graphics and images.
|
| java.io |
Provides for system input and output through data streams, serialization and the file system.
|
| java.lang |
Provides classes that are fundamental to the design of the Java programming language.
|
| java.nio.file |
Defines interfaces and classes for the Java virtual machine to access files, file attributes, and file systems.
|
| java.security |
Provides the classes and interfaces for the security framework.
|
| java.util |
Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array).
|
| 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.activation | |
| javax.imageio |
The main package of the Java Image I/O API.
|
| javax.imageio.spi |
A package of the Java Image I/O API containing the plug-in interfaces for readers, writers, transcoders, and streams, and a runtime registry.
|
| javax.imageio.stream |
A package of the Java Image I/O API dealing with low-level I/O from files and streams.
|
| javax.security.auth.kerberos |
This package contains utility classes related to the Kerberos network authentication protocol.
|
| javax.sound.midi |
Provides interfaces and classes for I/O, sequencing, and synthesis of MIDI (Musical Instrument Digital Interface) data.
|
| javax.sound.midi.spi |
Supplies interfaces for service providers to implement when offering new MIDI devices, MIDI file readers and writers, or sound bank readers.
|
| javax.sound.sampled |
Provides interfaces and classes for capture, processing, and playback of sampled audio data.
|
| javax.sound.sampled.spi |
Supplies abstract classes for service providers to subclass when offering new audio devices, sound file readers and writers, or audio format converters.
|
| 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 Java look and feel (once codenamed
Metal), which is the default look and feel.
|
| javax.swing.plaf.multi |
Provides user interface objects that combine two or more look and feels.
|
| javax.tools |
Provides interfaces for tools which can be invoked from a program, for example, compilers.
|
| javax.xml.bind |
Provides a runtime binding framework for client applications including unmarshalling, marshalling, and validation capabilities.
|
| javax.xml.bind.helpers |
JAXB Provider Use Only: Provides partial default implementations for some of the
javax.xml.bind interfaces.
|
| javax.xml.parsers |
Provides classes allowing the processing of XML documents.
|
| javax.xml.transform.stream |
This package implements stream- and URI- specific transformation APIs.
|
| javax.xml.validation |
This package provides an API for validation of XML documents.
|
| Modifier and Type | Method and Description |
|---|---|
File |
FileDialog.getFiles()
Returns files that the user selects.
|
| Modifier and Type | Method and Description |
|---|---|
static Font |
Font.createFont(int fontFormat, File
Returns a new
Font using the specified font type and the specified font file.
|
void |
Desktop.edit(File
Launches the associated editor application and opens a file for editing.
|
void |
Desktop.open(File
Launches the associated application to open the file.
|
void |
Desktop.print(File
Prints a file with the native desktop printing facility, using the associated application's print command.
|
| Modifier and Type | Method and Description |
|---|---|
static File |
File.createTempFile(String
Creates an empty file in the default temporary-file directory, using the given prefix and suffix to generate its name.
|
static File |
File.createTempFile(String
Creates a new empty file in the specified directory, using the given prefix and suffix strings to generate its name.
|
File |
File.getAbsoluteFile()
Returns the absolute form of this abstract pathname.
|
File |
File.getCanonicalFile()
Returns the canonical form of this abstract pathname.
|
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.listFiles()
Returns an array of abstract pathnames denoting the files in the directory denoted by this abstract pathname.
|
File |
File.listFiles(FileFilter
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(FilenameFilter
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.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
FileFilter.accept(File
Tests whether or not the specified abstract pathname should be included in a pathname list.
|
boolean |
FilenameFilter.accept(File
Tests if a specified file should be included in a file list.
|
int |
File.compareTo(File
Compares two abstract pathnames lexicographically.
|
static File |
File.createTempFile(String
Creates a new empty file in the specified directory, using the given prefix and suffix strings to generate its name.
|
boolean |
File.renameTo(File
Renames the file denoted by this abstract pathname.
|
| Constructor and Description | |
|---|---|
File(File
Creates a new
File instance from a parent abstract pathname and a child pathname string.
|
|
FileInputStream(File
Creates a
FileInputStream by opening a connection to an actual file, the file named by the
File object
file in the file system.
|
|
FileOutputStream(File
Creates a file output stream to write to the file represented by the specified
File object.
|
|
FileOutputStream(File
Creates a file output stream to write to the file represented by the specified
File object.
|
|
FileReader(File
Creates a new
FileReader, given the
File to read from.
|
|
FileWriter(File
Constructs a FileWriter object given a File object.
|
|
FileWriter(File
Constructs a FileWriter object given a File object.
|
|
PrintStream(File
Creates a new print stream, without automatic line flushing, with the specified file.
|
|
PrintStream(File
Creates a new print stream, without automatic line flushing, with the specified file and charset.
|
|
PrintWriter(File
Creates a new PrintWriter, without automatic line flushing, with the specified file.
|
|
PrintWriter(File
Creates a new PrintWriter, without automatic line flushing, with the specified file and charset.
|
|
RandomAccessFile(File
Creates a random access file stream to read from, and optionally to write to, the file specified by the
File argument.
|
| Modifier and Type | Method and Description |
|---|---|
File |
ProcessBuilder.directory()
Returns this process builder's working directory.
|
File |
ProcessBuilder.Redirect.file()
Returns the
File source or destination associated with this redirect, or
null if there is no such file.
|
| Modifier and Type | Method and Description |
|---|---|
static ProcessBuilder |
ProcessBuilder.Redirect.appendTo(File
Returns a redirect to append to the specified file.
|
ProcessBuilder |
ProcessBuilder.directory(File
Sets this process builder's working directory.
|
Process |
Runtime.exec(String
Executes the specified command and arguments in a separate process with the specified environment and working directory.
|
Process |
Runtime.exec(String
Executes the specified string command in a separate process with the specified environment and working directory.
|
static ProcessBuilder |
ProcessBuilder.Redirect.from(File
Returns a redirect to read from the specified file.
|
ProcessBuilder |
ProcessBuilder.redirectError(File
Sets this process builder's standard error destination to a file.
|
ProcessBuilder |
ProcessBuilder.redirectInput(File
Sets this process builder's standard input source to a file.
|
ProcessBuilder |
ProcessBuilder.redirectOutput(File
Sets this process builder's standard output destination to a file.
|
static ProcessBuilder |
ProcessBuilder.Redirect.to(File
Returns a redirect to write to the specified file.
|
| Modifier and Type | Method and Description |
|---|---|
File |
Path.toFile()
Returns a
File object representing this path.
|
| Modifier and Type | Method and Description |
|---|---|
static KeyStore |
KeyStore.Builder.newInstance(String
Returns a new Builder object.
|
| Constructor and Description | |
|---|---|
Formatter(File
Constructs a new formatter with the specified file.
|
|
Formatter(File
Constructs a new formatter with the specified file and charset.
|
|
Formatter(File
Constructs a new formatter with the specified file, charset, and locale.
|
|
Scanner(File
Constructs a new
Scanner that produces values scanned from the specified file.
|
|
Scanner(File
Constructs a new
Scanner that produces values scanned from the specified file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Pack200.Unpacker.unpack(File
Read a Pack200 archive, and write the encoded JAR to a JarOutputStream.
|
| Constructor and Description | |
|---|---|
JarFile(File
Creates a new
JarFile to read from the specified
File object.
|
|
JarFile(File
Creates a new
JarFile to read from the specified
File object.
|
|
JarFile(File
Creates a new
JarFile to read from the specified
File object in the specified mode.
|
| Constructor and Description | |
|---|---|
ZipFile(File
Opens a ZIP file for reading given the specified File object.
|
|
ZipFile(File
Opens a ZIP file for reading given the specified File object.
|
|
ZipFile(File
Opens a new
ZipFile to read from the specified
File object in the specified mode.
|
|
ZipFile(File
Opens a new
ZipFile to read from the specified
File object in the specified mode.
|
| Modifier and Type | Method and Description |
|---|---|
File |
FileDataSource.getFile()
Return the File object that corresponds to this FileDataSource.
|
| Modifier and Type | Method and Description |
|---|---|
abstract String |
FileTypeMap.getContentType(File
Return the type of the file object.
|
String |
MimetypesFileTypeMap.getContentType(File
Return the MIME type of the file object.
|
| Constructor and Description | |
|---|---|
FileDataSource(File
Creates a FileDataSource from a File object.
|
| Modifier and Type | Method and Description |
|---|---|
static File |
ImageIO.getCacheDirectory()
Returns the current value set by
setCacheDirectory, or
null if no explicit setting has been made.
|
| Modifier and Type | Method and Description |
|---|---|
static BufferedImage |
ImageIO.read(File
Returns a
BufferedImage as the result of decoding a supplied
File with an
ImageReader chosen automatically from among those currently registered.
|
static void |
ImageIO.setCacheDirectory(File
Sets the directory where cache files are to be created.
|
static boolean |
ImageIO.write(RenderedImage
Writes an image using an arbitrary
ImageWriter that supports the given format to a
File.
|
| Modifier and Type | Method and Description |
|---|---|
abstract ImageInputStream |
ImageInputStreamSpi.createInputStreamInstance(Object
Returns an instance of the
ImageInputStream implementation associated with this service provider.
|
abstract ImageOutputStream |
ImageOutputStreamSpi.createOutputStreamInstance(Object
Returns an instance of the
ImageOutputStream implementation associated with this service provider.
|
| Constructor and Description | |
|---|---|
FileCacheImageInputStream(InputStream
Constructs a
FileCacheImageInputStream that will read from a given
InputStream.
|
|
FileCacheImageOutputStream(OutputStream
Constructs a
FileCacheImageOutputStream that will write to a given
outputStream.
|
|
FileImageInputStream(File
Constructs a
FileImageInputStream that will read from a given
File.
|
|
FileImageOutputStream(File
Constructs a
FileImageOutputStream that will write to a given
File.
|
| Modifier and Type | Method and Description |
|---|---|
static KeyTab |
KeyTab.getInstance(File
Returns a
KeyTab instance from a
File object that is bound to an unknown service principal.
|
static KeyTab |
KeyTab.getInstance(KerberosPrincipal
Returns a
KeyTab instance from a
File object that is bound to the specified service principal.
|
static KeyTab |
KeyTab.getUnboundInstance(File
Returns an unbound
KeyTab instance from a
File object.
|
| Modifier and Type | Method and Description |
|---|---|
static MidiFileFormat |
MidiSystem.getMidiFileFormat(File
Obtains the MIDI file format of the specified
File.
|
static Sequence |
MidiSystem.getSequence(File
Obtains a MIDI sequence from the specified
File.
|
static Soundbank |
MidiSystem.getSoundbank(File
Constructs a
Soundbank by reading it from the specified
File.
|
static int |
MidiSystem.write(Sequence
Writes a stream of bytes representing a file of the MIDI file type indicated to the external file provided.
|
| Modifier and Type | Method and Description |
|---|---|
abstract MidiFileFormat |
MidiFileReader.getMidiFileFormat(File
Obtains the MIDI file format of the
File provided.
|
abstract Sequence |
MidiFileReader.getSequence(File
Obtains a MIDI sequence from the
File provided.
|
abstract Soundbank |
SoundbankReader.getSoundbank(File
Obtains a soundbank object from the
File provided.
|
abstract int |
MidiFileWriter.write(Sequence
Writes a stream of bytes representing a MIDI file of the file type indicated to the external file provided.
|
| Modifier and Type | Method and Description |
|---|---|
static AudioFileFormat |
AudioSystem.getAudioFileFormat(File
Obtains the audio file format of the specified
File.
|
static AudioInputStream |
AudioSystem.getAudioInputStream(File
Obtains an audio input stream from the provided
File.
|
static int |
AudioSystem.write(AudioInputStream
Writes a stream of bytes representing an audio file of the specified file type to the external file provided.
|
| Modifier and Type | Method and Description |
|---|---|
abstract AudioFileFormat |
AudioFileReader.getAudioFileFormat(File
Obtains the audio file format of the
File provided.
|
abstract AudioInputStream |
AudioFileReader.getAudioInputStream(File
Obtains an audio input stream from the
File provided.
|
abstract int |
AudioFileWriter.write(AudioInputStream
Writes a stream of bytes representing an audio file of the file format indicated to the external file provided.
|
| Modifier and Type | Method and Description |
|---|---|
File |
JFileChooser.getCurrentDirectory()
Returns the current directory.
|
File |
JFileChooser.getSelectedFile()
Returns the selected file.
|
File |
JFileChooser.getSelectedFiles()
Returns a list of selected files if the file chooser is set to allow multiple selection.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
JFileChooser.accept(File
Returns true if the file should be displayed.
|
void |
JFileChooser.ensureFileIsVisible(File
Makes sure that the specified file is viewable, and not hidden.
|
String |
JFileChooser.getDescription(File
Returns the file description.
|
Icon |
JFileChooser.getIcon(File
Returns the icon for this file or type of file, depending on the system.
|
String |
JFileChooser.getName(File
Returns the filename.
|
String |
JFileChooser.getTypeDescription(File
Returns the file type.
|
boolean |
JFileChooser.isTraversable(File
Returns true if the file (directory) can be visited.
|
void |
JFileChooser.setCurrentDirectory(File
Sets the current directory.
|
void |
JFileChooser.setSelectedFile(File
Sets the selected file.
|
void |
JFileChooser.setSelectedFiles(File
Sets the list of selected files if the file chooser is set to allow multiple selection.
|
| Constructor and Description | |
|---|---|
JFileChooser(File
Constructs a
JFileChooser using the given
File as the path.
|
|
JFileChooser(File
Constructs a
JFileChooser using the given current directory and
FileSystemView.
|
| Modifier and Type | Method and Description |
|---|---|
File |
FileSystemView.createFileObject(File
Returns a File object constructed in dir from the given filename.
|
File |
FileSystemView.createFileObject(String
Returns a File object constructed from the given path string.
|
protected File |
FileSystemView.createFileSystemRoot(File
Creates a new
File object for
f with correct behavior for a file system root directory.
|
abstract File |
FileSystemView.createNewFolder(File
Creates a new folder with a default folder name.
|
File |
FileSystemView.getChild(File
|
File |
FileSystemView.getDefaultDirectory()
Return the user's default starting directory for the file chooser.
|
File |
FileSystemView.getFiles(File
Gets the list of shown (i.e.
|
File |
FileSystemView.getHomeDirectory()
|
File |
FileSystemView.getParentDirectory(File
Returns the parent directory of
dir.
|
File |
FileSystemView.getRoots()
Returns all root partitions on this system.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
FileNameExtensionFilter.accept(File
Tests the specified file, returning true if the file is accepted, false otherwise.
|
abstract boolean |
FileFilter.accept(File
Whether the given file is accepted by this filter.
|
File |
FileSystemView.createFileObject(File
Returns a File object constructed in dir from the given filename.
|
protected File |
FileSystemView.createFileSystemRoot(File
Creates a new
File object for
f with correct behavior for a file system root directory.
|
abstract File |
FileSystemView.createNewFolder(File
Creates a new folder with a default folder name.
|
File |
FileSystemView.getChild(File
|
String |
FileView.getDescription(File
A human readable description of the file.
|
File |
FileSystemView.getFiles(File
Gets the list of shown (i.e.
|
Icon |
FileView.getIcon(File
The icon that represents this file in the
JFileChooser.
|
String |
FileView.getName(File
The name of the file.
|
File |
FileSystemView.getParentDirectory(File
Returns the parent directory of
dir.
|
String |
FileSystemView.getSystemDisplayName(File
Name of a file, directory, or folder as it would be displayed in a system file browser.
|
Icon |
FileSystemView.getSystemIcon(File
Icon for a file, directory, or folder as it would be displayed in a system file browser.
|
String |
FileSystemView.getSystemTypeDescription(File
Type description for a file, directory, or folder as it would be displayed in a system file browser.
|
String |
FileView.getTypeDescription(File
A human readable description of the type of the file.
|
boolean |
FileSystemView.isComputerNode(File
Used by UI classes to decide whether to display a special icon for a computer node, e.g.
|
boolean |
FileSystemView.isDrive(File
Used by UI classes to decide whether to display a special icon for drives or partitions, e.g.
|
boolean |
FileSystemView.isFileSystem(File
Checks if
f represents a real directory or file as opposed to a special folder such as
"Desktop".
|
boolean |
FileSystemView.isFileSystemRoot(File
Is dir the root of a tree in the file system, such as a drive or partition.
|
boolean |
FileSystemView.isFloppyDrive(File
Used by UI classes to decide whether to display a special icon for a floppy disk.
|
boolean |
FileSystemView.isHiddenFile(File
Returns whether a file is hidden or not.
|
boolean |
FileSystemView.isParent(File
On Windows, a file can appear in multiple folders, other than its parent directory in the filesystem.
|
boolean |
FileSystemView.isRoot(File
Determines if the given file is a root in the navigable tree(s).
|
Boolean |
FileSystemView.isTraversable(File
Returns true if the file (directory) can be visited.
|
Boolean |
FileView.isTraversable(File
Whether the directory is traversable or not.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
FileChooserUI.ensureFileIsVisible(JFileChooser
|
| Modifier and Type | Field and Description |
|---|---|
protected Hashtable |
BasicFileChooserUI.BasicFileView.iconCache
|
| Modifier and Type | Method and Description |
|---|---|
protected File |
BasicFileChooserUI.getDirectory()
Property to remember the directory that is currently selected in the UI.
|
| Modifier and Type | Method and Description |
|---|---|
Vector |
BasicDirectoryModel.getDirectories()
|
Vector |
BasicDirectoryModel.getFiles()
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
BasicFileChooserUI.AcceptAllFileFilter.accept(File
|
void |
BasicFileChooserUI.BasicFileView.cacheIcon(File
|
void |
BasicFileChooserUI.ensureFileIsVisible(JFileChooser
|
Icon |
BasicFileChooserUI.BasicFileView.getCachedIcon(File
|
String |
BasicFileChooserUI.BasicFileView.getDescription(File
|
Icon |
BasicFileChooserUI.BasicFileView.getIcon(File
|
String |
BasicFileChooserUI.BasicFileView.getName(File
|
String |
BasicFileChooserUI.BasicFileView.getTypeDescription(File
|
Boolean |
BasicFileChooserUI.BasicFileView.isHidden(File
|
protected boolean |
BasicDirectoryModel.lt(File
|
boolean |
BasicDirectoryModel.renameFile(File
Renames a file in the underlying file system.
|
protected void |
BasicFileChooserUI.setDirectory(File
Property to remember the directory that is currently selected in the UI.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
BasicDirectoryModel.sort(Vector
|
| Modifier and Type | Method and Description |
|---|---|
void |
MetalFileChooserUI.ensureFileIsVisible(JFileChooser
|
| Modifier and Type | Method and Description |
|---|---|
void |
MultiFileChooserUI.ensureFileIsVisible(JFileChooser
Invokes the
ensureFileIsVisible method on each UI handled by this object.
|
| Modifier and Type | Method and Description |
|---|---|
Iterable |
StandardJavaFileManager.getLocation(JavaFileManager
Gets the path associated with the given location.
|
| Modifier and Type | Method and Description |
|---|---|
Iterable |
StandardJavaFileManager.getJavaFileObjects(File
Gets file objects representing the given files.
|
| Modifier and Type | Method and Description |
|---|---|
Iterable |
StandardJavaFileManager.getJavaFileObjectsFromFiles(Iterable
Gets file objects representing the given files.
|
void |
StandardJavaFileManager.setLocation(JavaFileManager
Associates the given path with the given location.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Marshaller.marshal(Object
Marshal the content tree rooted at
jaxbElement into a file.
|
static void |
JAXB.marshal(Object
Writes a Java object tree to XML and store it to the specified location.
|
Object |
Unmarshaller.unmarshal(File
Unmarshal XML data from the specified file and return the resulting content tree.
|
static <T> T |
JAXB.unmarshal(File
Reads in a Java object tree from the given XML input.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractMarshallerImpl.marshal(Object
|
Object |
AbstractUnmarshallerImpl.unmarshal(File
|
| Modifier and Type | Method and Description |
|---|---|
Document |
DocumentBuilder.parse(File
Parse the content of the given file as an XML document and return a new DOM
Document object.
|
void |
SAXParser.parse(File
Parse the content of the file specified as XML using the specified
DefaultHandler.
|
void |
SAXParser.parse(File
Parse the content of the file specified as XML using the specified
HandlerBase.
|
| Modifier and Type | Method and Description |
|---|---|
void |
StreamResult.setSystemId(File
Set the system ID from a
File reference.
|
void |
StreamSource.setSystemId(File
Set the system ID from a File reference.
|
| Constructor and Description | |
|---|---|
StreamResult(File
Construct a StreamResult from a File.
|
|
StreamSource(File
Construct a StreamSource from a File.
|
| Modifier and Type | Method and Description |
|---|---|
Schema |
SchemaFactory.newSchema(File
Parses the specified
File as a schema and returns it as a
Schema.
|