Uses of Class
java.io.File
-
Packages that use File Package Description com.ibm.dtfj.image Classes to support reading system images.com.ibm.java.diagnostics.utils.plugins com.ibm.jvm.trace.format.api This API is used to process trace buffers generated by OpenJ9.com.sun.javadoc Note: The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet.java.awt Contains all of the classes for creating user interfaces and for painting graphics and images.java.awt.desktop Provides interfaces and classes for interaction with various desktop capabilities.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, some internationalization support classes, a service loader, properties, random number generation, string parsing and scanning classes, base64 encoding and decoding, a bit array, and several miscellaneous utility classes.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.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 theJFileChoosercomponent.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.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.parsers Provides the classes for processing XML documents with a SAX (Simple API for XML) parser or a DOM (Document Object Model) Document builder.javax.xml.transform.stream Provides stream and URI specific transformation classes.javax.xml.validation Provides an API for validation of XML documents.jdk.nashorn.api.tree Nashorn parser API provides interfaces to represent ECMAScript source code as abstract syntax trees (AST) and Parser to parse ECMAScript source scripts. -
-
Uses of File in com.ibm.dtfj.image
Methods in com.ibm.dtfj.image with parameters of type File Modifier and Type Method Description ImageImageFactory. getImage(File imageFile)Creates a newImageobject based on the contents ofimageFile.ImageImageFactory. getImage(File imageFile, File metadata)Creates a newImageobject based on the contents ofimageFileandmetadata.Image[]ImageFactory. getImagesFromArchive(File archive, boolean extract)Creates an array ofImageobjects from an archive such as a zip or jar file. -
Uses of File in com.ibm.java.diagnostics.utils.plugins
Fields in com.ibm.java.diagnostics.utils.plugins declared as File Modifier and Type Field Description protected FileEntry. fileMethods in com.ibm.java.diagnostics.utils.plugins that return File Modifier and Type Method Description FileEntry. getFile()Methods in com.ibm.java.diagnostics.utils.plugins with parameters of type File Modifier and Type Method Description <T extends Entry>
TContainer. getEntry(File fileToScan)booleanEntry. hasChanged(File previous)Constructors in com.ibm.java.diagnostics.utils.plugins with parameters of type File Constructor Description Container(File file)Entry(File file)Entry(String name, File file) -
Uses of File in com.ibm.jvm.trace.format.api
Methods in com.ibm.jvm.trace.format.api with parameters of type File Modifier and Type Method Description voidTraceContext. addMessageData(File file)static TraceContextTraceContext. getContext(byte[] data, int length, File messageFile)static TraceContextTraceContext. getContext(byte[] data, int length, File messageFile, PrintStream message, PrintStream error, PrintStream warning, PrintStream debug)static TraceContextTraceContext. getContext(ByteBuffer data, File messageFile)static TraceContextTraceContext. getContext(ByteBuffer data, File messageFile, PrintStream message, PrintStream error, PrintStream warning, PrintStream debug)This method constructs a context that can be used to format trace records produced by the VM instance that created the meta-data provided.static MessageFileMessageFile. getMessageFile(File file, TraceContext context) -
Uses of File in com.sun.javadoc
Methods in com.sun.javadoc that return File Modifier and Type Method Description FileSourcePosition. file()Deprecated, for removal: This API element is subject to removal in a future version.The source file. -
Uses of File in java.awt
Methods in java.awt that return File Modifier and Type Method Description File[]FileDialog. getFiles()Returns files that the user selects.Methods in java.awt with parameters of type File Modifier and Type Method Description voidDesktop. browseFileDirectory(File file)Opens a folder containing thefileand selects it in a default system file manager.static FontFont. createFont(int fontFormat, File fontFile)Returns a newFontusing the specified font type and the specified font file.static Font[]Font. createFonts(File fontFile)Returns a new array ofFontdecoded from the specified file.voidDesktop. edit(File file)Launches the associated editor application and opens a file for editing.booleanDesktop. moveToTrash(File file)Moves the specified file to the trash.voidDesktop. open(File file)Launches the associated application to open the file.voidDesktop. print(File file)Prints a file with the native desktop printing facility, using the associated application's print command. -
Uses of File in java.awt.desktop
Methods in java.awt.desktop that return types with arguments of type File Modifier and Type Method Description List<File>FilesEvent. getFiles()Gets the list of files.Constructor parameters in java.awt.desktop with type arguments of type File Constructor Description OpenFilesEvent(List<File> files, String searchTerm)Constructs anOpenFilesEvent.PrintFilesEvent(List<File> files)Constructs aPrintFilesEvent. -
Uses of File in java.io
Methods in java.io that return File Modifier and Type Method Description static FileFile. 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.static FileFile. 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.FileFile. getAbsoluteFile()Returns the absolute form of this abstract pathname.FileFile. getCanonicalFile()Returns the canonical form of this abstract pathname.FileFile. getParentFile()Returns the abstract pathname of this abstract pathname's parent, ornullif 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 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(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.static File[]File. listRoots()List the available filesystem roots.Methods in java.io with parameters of type File Modifier and Type Method Description booleanFileFilter. accept(File pathname)Tests whether or not the specified abstract pathname should be included in a pathname list.booleanFilenameFilter. accept(File dir, String name)Tests if a specified file should be included in a file list.intFile. compareTo(File pathname)Compares two abstract pathnames lexicographically.static FileFile. 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.booleanFile. renameTo(File dest)Renames the file denoted by this abstract pathname.Constructors in java.io with parameters of type File Constructor Description File(File parent, String child)Creates a newFileinstance from a parent abstract pathname and a child pathname string.FileInputStream(File file)Creates aFileInputStreamby opening a connection to an actual file, the file named by theFileobjectfilein the file system.FileOutputStream(File file)Creates a file output stream to write to the file represented by the specifiedFileobject.FileOutputStream(File file, boolean append)Creates a file output stream to write to the file represented by the specifiedFileobject.FileReader(File file)FileReader(File file, Charset charset)FileWriter(File file)FileWriter(File file, boolean append)Constructs aFileWritergiven theFileto write and a boolean indicating whether to append the data written, using the platform's default charset.FileWriter(File file, Charset charset)FileWriter(File file, Charset charset, boolean append)Constructs aFileWritergiven theFileto write, charset and a boolean indicating whether to append the data written.PrintStream(File file)Creates a new print stream, without automatic line flushing, with the specified file.PrintStream(File file, String csn)Creates a new print stream, without automatic line flushing, with the specified file and charset.PrintStream(File file, Charset charset)Creates a new print stream, without automatic line flushing, with the specified file and charset.PrintWriter(File file)Creates a new PrintWriter, without automatic line flushing, with the specified file.PrintWriter(File file, String csn)Creates a new PrintWriter, without automatic line flushing, with the specified file and charset.PrintWriter(File file, Charset charset)Creates a new PrintWriter, without automatic line flushing, with the specified file and charset.RandomAccessFile(File file, String mode)Creates a random access file stream to read from, and optionally to write to, the file specified by theFileargument. -
Uses of File in java.lang
Methods in java.lang that return File Modifier and Type Method Description FileProcessBuilder. directory()Returns this process builder's working directory.FileProcessBuilder.Redirect. file()Returns theFilesource or destination associated with this redirect, ornullif there is no such file.Methods in java.lang with parameters of type File Modifier and Type Method Description static ProcessBuilder.RedirectProcessBuilder.Redirect. appendTo(File file)Returns a redirect to append to the specified file.ProcessBuilderProcessBuilder. directory(File directory)Sets this process builder's working directory.ProcessRuntime. exec(String[] cmdarray, String[] envp, File dir)Executes the specified command and arguments in a separate process with the specified environment and working directory.ProcessRuntime. exec(String command, String[] envp, File dir)Executes the specified string command in a separate process with the specified environment and working directory.static ProcessBuilder.RedirectProcessBuilder.Redirect. from(File file)Returns a redirect to read from the specified file.ProcessBuilderProcessBuilder. redirectError(File file)Sets this process builder's standard error destination to a file.ProcessBuilderProcessBuilder. redirectInput(File file)Sets this process builder's standard input source to a file.ProcessBuilderProcessBuilder. redirectOutput(File file)Sets this process builder's standard output destination to a file.static ProcessBuilder.RedirectProcessBuilder.Redirect. to(File file)Returns a redirect to write to the specified file. -
Uses of File in java.nio.file
Methods in java.nio.file that return File Modifier and Type Method Description default FilePath. toFile()Returns aFileobject representing this path. -
Uses of File in java.security
Methods in java.security with parameters of type File Modifier and Type Method Description static KeyStoreKeyStore. getInstance(File file, char[] password)Returns a loaded keystore object of the appropriate keystore type.static KeyStoreKeyStore. getInstance(File file, KeyStore.LoadStoreParameter param)Returns a loaded keystore object of the appropriate keystore type.static KeyStore.BuilderKeyStore.Builder. newInstance(File file, KeyStore.ProtectionParameter protection)Returns a new Builder object.static KeyStore.BuilderKeyStore.Builder. newInstance(String type, Provider provider, File file, KeyStore.ProtectionParameter protection)Returns a new Builder object. -
Uses of File in java.util
Constructors in java.util with parameters of type File Constructor Description Formatter(File file)Constructs a new formatter with the specified file.Formatter(File file, String csn)Constructs a new formatter with the specified file and charset.Formatter(File file, String csn, Locale l)Constructs a new formatter with the specified file, charset, and locale.Formatter(File file, Charset charset, Locale l)Constructs a new formatter with the specified file, charset, and locale.Scanner(File source)Constructs a newScannerthat produces values scanned from the specified file.Scanner(File source, String charsetName)Constructs a newScannerthat produces values scanned from the specified file.Scanner(File source, Charset charset)Constructs a newScannerthat produces values scanned from the specified file. -
Uses of File in java.util.jar
Methods in java.util.jar with parameters of type File Modifier and Type Method Description voidPack200.Unpacker. unpack(File in, JarOutputStream out)Deprecated, for removal: This API element is subject to removal in a future version.Read a Pack200 archive, and write the encoded JAR to a JarOutputStream.Constructors in java.util.jar with parameters of type File Constructor Description JarFile(File file)Creates a newJarFileto read from the specifiedFileobject.JarFile(File file, boolean verify)Creates a newJarFileto read from the specifiedFileobject.JarFile(File file, boolean verify, int mode)Creates a newJarFileto read from the specifiedFileobject in the specified mode.JarFile(File file, boolean verify, int mode, Runtime.Version version)Creates a newJarFileto read from the specifiedFileobject in the specified mode. -
Uses of File in java.util.zip
Constructors in java.util.zip with parameters of type File Constructor Description ZipFile(File file)Opens a ZIP file for reading given the specified File object.ZipFile(File file, int mode)Opens a newZipFileto read from the specifiedFileobject in the specified mode.ZipFile(File file, int mode, Charset charset)Opens a newZipFileto read from the specifiedFileobject in the specified mode.ZipFile(File file, Charset charset)Opens a ZIP file for reading given the specified File object. -
Uses of File in javax.imageio
Methods in javax.imageio that return File Modifier and Type Method Description static FileImageIO. getCacheDirectory()Returns the current value set bysetCacheDirectory, ornullif no explicit setting has been made.Methods in javax.imageio with parameters of type File Modifier and Type Method Description static BufferedImageImageIO. read(File input)Returns aBufferedImageas the result of decoding a suppliedFilewith anImageReaderchosen automatically from among those currently registered.static voidImageIO. setCacheDirectory(File cacheDirectory)Sets the directory where cache files are to be created.static booleanImageIO. write(RenderedImage im, String formatName, File output)Writes an image using an arbitraryImageWriterthat supports the given format to aFile. -
Uses of File in javax.imageio.spi
Methods in javax.imageio.spi with parameters of type File Modifier and Type Method Description abstract ImageInputStreamImageInputStreamSpi. createInputStreamInstance(Object input, boolean useCache, File cacheDir)Returns an instance of theImageInputStreamimplementation associated with this service provider.abstract ImageOutputStreamImageOutputStreamSpi. createOutputStreamInstance(Object output, boolean useCache, File cacheDir)Returns an instance of theImageOutputStreamimplementation associated with this service provider. -
Uses of File in javax.imageio.stream
Constructors in javax.imageio.stream with parameters of type File Constructor Description FileCacheImageInputStream(InputStream stream, File cacheDir)Constructs aFileCacheImageInputStreamthat will read from a givenInputStream.FileCacheImageOutputStream(OutputStream stream, File cacheDir)Constructs aFileCacheImageOutputStreamthat will write to a givenoutputStream.FileImageInputStream(File f)Constructs aFileImageInputStreamthat will read from a givenFile.FileImageOutputStream(File f)Constructs aFileImageOutputStreamthat will write to a givenFile. -
Uses of File in javax.security.auth.kerberos
Methods in javax.security.auth.kerberos with parameters of type File Modifier and Type Method Description static KeyTabKeyTab. getInstance(File file)Returns aKeyTabinstance from aFileobject that is bound to an unknown service principal.static KeyTabKeyTab. getInstance(KerberosPrincipal princ, File file)Returns aKeyTabinstance from aFileobject that is bound to the specified service principal.static KeyTabKeyTab. getUnboundInstance(File file)Returns an unboundKeyTabinstance from aFileobject. -
Uses of File in javax.sound.midi
Methods in javax.sound.midi with parameters of type File Modifier and Type Method Description static MidiFileFormatMidiSystem. getMidiFileFormat(File file)Obtains the MIDI file format of the specifiedFile.static SequenceMidiSystem. getSequence(File file)Obtains a MIDI sequence from the specifiedFile.static SoundbankMidiSystem. getSoundbank(File file)Constructs aSoundbankby reading it from the specifiedFile.static intMidiSystem. write(Sequence in, int type, File out)Writes a stream of bytes representing a file of the MIDI file type indicated to the external file provided. -
Uses of File in javax.sound.midi.spi
Methods in javax.sound.midi.spi with parameters of type File Modifier and Type Method Description abstract MidiFileFormatMidiFileReader. getMidiFileFormat(File file)Obtains the MIDI file format of theFileprovided.abstract SequenceMidiFileReader. getSequence(File file)Obtains a MIDI sequence from theFileprovided.abstract SoundbankSoundbankReader. getSoundbank(File file)Obtains a soundbank object from theFileprovided.abstract intMidiFileWriter. write(Sequence in, int fileType, File out)Writes a stream of bytes representing a MIDI file of the file type indicated to the external file provided. -
Uses of File in javax.sound.sampled
Methods in javax.sound.sampled with parameters of type File Modifier and Type Method Description static AudioFileFormatAudioSystem. getAudioFileFormat(File file)Obtains the audio file format of the specifiedFile.static AudioInputStreamAudioSystem. getAudioInputStream(File file)Obtains an audio input stream from the providedFile.static intAudioSystem. write(AudioInputStream stream, AudioFileFormat.Type fileType, File out)Writes a stream of bytes representing an audio file of the specified file type to the external file provided. -
Uses of File in javax.sound.sampled.spi
Methods in javax.sound.sampled.spi with parameters of type File Modifier and Type Method Description abstract AudioFileFormatAudioFileReader. getAudioFileFormat(File file)Obtains the audio file format of theFileprovided.abstract AudioInputStreamAudioFileReader. getAudioInputStream(File file)Obtains an audio input stream from theFileprovided.abstract intAudioFileWriter. write(AudioInputStream stream, AudioFileFormat.Type fileType, File out)Writes a stream of bytes representing an audio file of the file format indicated to the external file provided. -
Uses of File in javax.swing
Methods in javax.swing that return File Modifier and Type Method Description FileJFileChooser. getCurrentDirectory()Returns the current directory.FileJFileChooser. getSelectedFile()Returns the selected file.File[]JFileChooser. getSelectedFiles()Returns a list of selected files if the file chooser is set to allow multiple selection.Methods in javax.swing with parameters of type File Modifier and Type Method Description booleanJFileChooser. accept(File f)Returns true if the file should be displayed.voidJFileChooser. ensureFileIsVisible(File f)Makes sure that the specified file is viewable, and not hidden.StringJFileChooser. getDescription(File f)Returns the file description.IconJFileChooser. getIcon(File f)Returns the icon for this file or type of file, depending on the system.StringJFileChooser. getName(File f)Returns the filename.StringJFileChooser. getTypeDescription(File f)Returns the file type.booleanJFileChooser. isTraversable(File f)Returns true if the file (directory) can be visited.voidJFileChooser. setCurrentDirectory(File dir)Sets the current directory.voidJFileChooser. setSelectedFile(File file)Sets the selected file.voidJFileChooser. setSelectedFiles(File[] selectedFiles)Sets the list of selected files if the file chooser is set to allow multiple selection.Constructors in javax.swing with parameters of type File Constructor Description JFileChooser(File currentDirectory)Constructs aJFileChooserusing the givenFileas the path.JFileChooser(File currentDirectory, FileSystemView fsv)Constructs aJFileChooserusing the given current directory andFileSystemView. -
Uses of File in javax.swing.filechooser
Methods in javax.swing.filechooser that return File Modifier and Type Method Description FileFileSystemView. createFileObject(File dir, String filename)Returns a File object constructed in dir from the given filename.FileFileSystemView. createFileObject(String path)Returns a File object constructed from the given path string.protected FileFileSystemView. createFileSystemRoot(File f)Creates a newFileobject forfwith correct behavior for a file system root directory.abstract FileFileSystemView. createNewFolder(File containingDir)Creates a new folder with a default folder name.FileFileSystemView. getChild(File parent, String fileName)File[]FileSystemView. getChooserComboBoxFiles()Returns an array of files representing the values to show by default in the file chooser selector.FileFileSystemView. getDefaultDirectory()Return the user's default starting directory for the file chooser.File[]FileSystemView. getFiles(File dir, boolean useFileHiding)Gets the list of shown (i.e. not hidden) files.FileFileSystemView. getHomeDirectory()Returns the home directory.FileFileSystemView. getLinkLocation(File file)Returns the regular file referenced by the specified link file if the specified file is a shell interpreted link.FileFileSystemView. getParentDirectory(File dir)Returns the parent directory ofdir.File[]FileSystemView. getRoots()Returns all root partitions on this system.Methods in javax.swing.filechooser with parameters of type File Modifier and Type Method Description abstract booleanFileFilter. accept(File f)Whether the given file is accepted by this filter.booleanFileNameExtensionFilter. accept(File f)Tests the specified file, returning true if the file is accepted, false otherwise.FileFileSystemView. createFileObject(File dir, String filename)Returns a File object constructed in dir from the given filename.protected FileFileSystemView. createFileSystemRoot(File f)Creates a newFileobject forfwith correct behavior for a file system root directory.abstract FileFileSystemView. createNewFolder(File containingDir)Creates a new folder with a default folder name.FileFileSystemView. getChild(File parent, String fileName)StringFileView. getDescription(File f)A human readable description of the file.File[]FileSystemView. getFiles(File dir, boolean useFileHiding)Gets the list of shown (i.e. not hidden) files.IconFileView. getIcon(File f)The icon that represents this file in theJFileChooser.FileFileSystemView. getLinkLocation(File file)Returns the regular file referenced by the specified link file if the specified file is a shell interpreted link.StringFileView. getName(File f)The name of the file.FileFileSystemView. getParentDirectory(File dir)Returns the parent directory ofdir.StringFileSystemView. getSystemDisplayName(File f)Name of a file, directory, or folder as it would be displayed in a system file browser.IconFileSystemView. getSystemIcon(File f)Icon for a file, directory, or folder as it would be displayed in a system file browser.StringFileSystemView. getSystemTypeDescription(File f)Type description for a file, directory, or folder as it would be displayed in a system file browser.StringFileView. getTypeDescription(File f)A human readable description of the type of the file.booleanFileSystemView. isComputerNode(File dir)Used by UI classes to decide whether to display a special icon for a computer node, e.g.booleanFileSystemView. isDrive(File dir)Used by UI classes to decide whether to display a special icon for drives or partitions, e.g. a "hard disk" icon.booleanFileSystemView. isFileSystem(File f)Checks iffrepresents a real directory or file as opposed to a special folder such as"Desktop".booleanFileSystemView. isFileSystemRoot(File dir)Is dir the root of a tree in the file system, such as a drive or partition.booleanFileSystemView. isFloppyDrive(File dir)Used by UI classes to decide whether to display a special icon for a floppy disk.booleanFileSystemView. isHiddenFile(File f)Returns whether a file is hidden or not.booleanFileSystemView. isLink(File file)Returns whether the specified file denotes a shell interpreted link which can be obtained by theFileSystemView.getLinkLocation(File).booleanFileSystemView. isParent(File folder, File file)On Windows, a file can appear in multiple folders, other than its parent directory in the filesystem.booleanFileSystemView. isRoot(File f)Determines if the given file is a root in the navigable tree(s).BooleanFileSystemView. isTraversable(File f)Returns true if the file (directory) can be visited.BooleanFileView. isTraversable(File f)Whether the directory is traversable or not. -
Uses of File in javax.swing.plaf
Methods in javax.swing.plaf with parameters of type File Modifier and Type Method Description abstract voidFileChooserUI. ensureFileIsVisible(JFileChooser fc, File f)Ensure the file in question is visible. -
Uses of File in javax.swing.plaf.basic
Fields in javax.swing.plaf.basic with type parameters of type File Modifier and Type Field Description protected Hashtable<File,Icon>BasicFileChooserUI.BasicFileView. iconCacheThe icon cacheMethods in javax.swing.plaf.basic that return File Modifier and Type Method Description protected FileBasicFileChooserUI. getDirectory()Property to remember the directory that is currently selected in the UI.Methods in javax.swing.plaf.basic that return types with arguments of type File Modifier and Type Method Description Vector<File>BasicDirectoryModel. getDirectories()Returns a list of directories.Vector<File>BasicDirectoryModel. getFiles()Returns a list of files.Methods in javax.swing.plaf.basic with parameters of type File Modifier and Type Method Description booleanBasicFileChooserUI.AcceptAllFileFilter. accept(File f)Returns true.voidBasicFileChooserUI.BasicFileView. cacheIcon(File f, Icon i)Caches an icon for a file.IconBasicFileChooserUI.BasicFileView. getCachedIcon(File f)Returns the cached icon for the file.BooleanBasicFileChooserUI.BasicFileView. isHidden(File f)Returns whether or not a file is hidden.protected booleanBasicDirectoryModel. lt(File a, File b)Obsolete - not usedbooleanBasicDirectoryModel. renameFile(File oldFile, File newFile)Renames a file in the underlying file system.protected voidBasicFileChooserUI. setDirectory(File f)Property to remember the directory that is currently selected in the UI.Method parameters in javax.swing.plaf.basic with type arguments of type File Modifier and Type Method Description protected voidBasicDirectoryModel. sort(Vector<? extends File> v)Sorts a list of files. -
Uses of File in javax.swing.plaf.multi
Methods in javax.swing.plaf.multi with parameters of type File Modifier and Type Method Description voidMultiFileChooserUI. ensureFileIsVisible(JFileChooser a, File b)Invokes theensureFileIsVisiblemethod on each UI handled by this object. -
Uses of File in javax.tools
Methods in javax.tools that return types with arguments of type File Modifier and Type Method Description Iterable<? extends File>StandardJavaFileManager. getLocation(JavaFileManager.Location location)Returns the search path associated with the given location.Methods in javax.tools with parameters of type File Modifier and Type Method Description Iterable<? extends JavaFileObject>StandardJavaFileManager. getJavaFileObjects(File... files)Returns file objects representing the given files.Method parameters in javax.tools with type arguments of type File Modifier and Type Method Description Iterable<? extends JavaFileObject>StandardJavaFileManager. getJavaFileObjectsFromFiles(Iterable<? extends File> files)Returns file objects representing the given files.voidStandardJavaFileManager. setLocation(JavaFileManager.Location location, Iterable<? extends File> files)Associates the given search path with the given location. -
Uses of File in javax.xml.parsers
Methods in javax.xml.parsers with parameters of type File Modifier and Type Method Description DocumentDocumentBuilder. parse(File f)Parse the content of the given file as an XML document and return a new DOMDocumentobject.voidSAXParser. parse(File f, HandlerBase hb)Parse the content of the file specified as XML using the specifiedHandlerBase.voidSAXParser. parse(File f, DefaultHandler dh)Parse the content of the file specified as XML using the specifiedDefaultHandler. -
Uses of File in javax.xml.transform.stream
Methods in javax.xml.transform.stream with parameters of type File Modifier and Type Method Description voidStreamResult. setSystemId(File f)Set the system ID from aFilereference.voidStreamSource. setSystemId(File f)Set the system ID from a File reference.Constructors in javax.xml.transform.stream with parameters of type File Constructor Description StreamResult(File f)Construct a StreamResult from a File.StreamSource(File f)Construct a StreamSource from a File. -
Uses of File in javax.xml.validation
Methods in javax.xml.validation with parameters of type File Modifier and Type Method Description SchemaSchemaFactory. newSchema(File schema)Parses the specifiedFileas a schema and returns it as aSchema. -
Uses of File in jdk.nashorn.api.tree
Methods in jdk.nashorn.api.tree with parameters of type File Modifier and Type Method Description CompilationUnitTreeParser. parse(File file, DiagnosticListener listener)Deprecated, for removal: This API element is subject to removal in a future version.Parses the source file and returns compilation unit tree
-