Uses of Class
java.io.File
-
Packages that use File 软件包 描述 com.sun.javadoc 注意:该包装中的声明已被包装jdk.javadoc.doclet中的声明所取代。java.awt 包含用于创建用户界面和绘制图形和图像的所有类。java.awt.desktop 提供与各种桌面功能交互的接口和类。java.io 通过数据流,序列化和文件系统提供系统输入和输出。java.lang 提供对Java编程语言设计至关重要的类。java.nio.file 定义Java虚拟机访问文件,文件属性和文件系统的接口和类。java.security 提供安全框架的类和接口。java.util 包含集合框架,一些国际化支持类,一个服务加载器,属性,随机数生成,字符串解析和扫描类,base64编码和解码,一个位数组和几个其他实用程序类。java.util.jar 提供用于读取和写入JAR(Java ARchive)文件格式的类,该文件格式基于具有可选清单文件的标准ZIP文件格式。java.util.zip 提供读写标准ZIP和GZIP文件格式的类。javafx.css 提供API,通过CSS使属性变得风格,并支持伪类状态。javafx.scene.input 提供一组用于鼠标和键盘输入事件处理的类。javafx.scene.web 该软件包提供了加载和显示Web内容的方法。javafx.stage 提供JavaFX内容的顶级容器类。javax.activation javax.imageio Java Image I / O API的主要包。javax.imageio.spi 包含用于读取器,写入器,代码转换器和流以及运行时注册表的插件接口的Java Image I / O API包。javax.imageio.stream Java Image I / O API的一个封装,处理来自文件和流的低级I / O。javax.jnlp JNLP API旨在为Java Plugin中运行的JNLP应用程序提供附加服务,或者由Java Web Start启动。javax.security.auth.kerberos 此包包含与Kerberos网络身份验证协议相关的实用程序类。javax.sound.midi 提供MIDI(乐器数字接口)数据的I / O,排序和综合的接口和类。javax.sound.midi.spi 为服务提供商提供了提供新的MIDI设备,MIDI文件读取器和写入器或声卡读取器的接口。javax.sound.sampled 提供用于捕获,处理和播放采样音频数据的接口和类。javax.sound.sampled.spi 为服务提供商提供抽象类,以提供新的音频设备,声音文件读取器和写入器或音频格式转换器。javax.swing 提供一套“轻量级”(全Java语言)组件,尽可能地在所有平台上工作。javax.swing.filechooser 包含JFileChooser组件使用的类和接口。javax.swing.plaf 提供一个接口和许多抽象类,Swing用来提供其可插拔的外观和感觉功能。javax.swing.plaf.basic 提供根据“基本”外观构建的用户界面对象。javax.swing.plaf.metal 提供根据Java外观构建的用户界面对象(一旦代号为 Metal ),这是默认的外观和感觉。javax.swing.plaf.multi 提供组合两种或多种外观和感觉的用户界面对象。javax.tools 为可以从程序调用的工具提供接口,例如编译器。javax.xml.bind 为客户端应用程序提供运行时绑定框架,包括解组,编组和验证功能。javax.xml.bind.helpers 仅限JAXB提供程序使用:为部分javax.xml.bind接口提供部分默认实现。javax.xml.parsers 提供使用SAX(Simple API for XML)解析器或DOM(文档对象模型)文档构建器处理XML文档的类。javax.xml.transform.stream 提供流和URI特定的转换类。javax.xml.validation 提供用于验证XML文档的API。jdk.nashorn.api.tree Nashorn解析器API提供了将ECMAScript源代码表示为抽象语法树(AST)和解析器来解析ECMAScript源脚本的接口。 -
-
Uses of File in com.sun.javadoc
Methods in com.sun.javadoc that return File Modifier and Type 方法 描述 FileSourcePosition. file()已过时。源文件。 -
Uses of File in java.awt
Methods in java.awt that return File Modifier and Type 方法 描述 File[]FileDialog. getFiles()返回用户选择的文件。Methods in java.awt with parameters of type File Modifier and Type 方法 描述 voidDesktop. browseFileDirectory(File file)打开包含file的文件夹,并在默认的系统文件管理器中选择它。static FontFont. createFont(int fontFormat, File fontFile)使用指定的字体类型和指定的字体文件返回新的Font。static Font[]Font. createFonts(File fontFile)返回从指定文件解码的新数组Font。voidDesktop. edit(File file)启动相关的编辑器应用程序并打开一个文件进行编辑。booleanDesktop. moveToTrash(File file)将指定的文件移动到垃圾桶。voidDesktop. open(File file)启动相关应用程序以打开文件。voidDesktop. print(File file)使用相关应用程序的打印命令打印本机桌面打印设备的文件。 -
Uses of File in java.awt.desktop
Methods in java.awt.desktop that return types with arguments of type File Modifier and Type 方法 描述 List<File>FilesEvent. getFiles()获取文件列表Constructor parameters in java.awt.desktop with type arguments of type File Constructor 描述 OpenFilesEvent(List<File> files, String searchTerm)构造一个OpenFilesEventPrintFilesEvent(List<File> files)构造一个PrintFilesEvent -
Uses of File in java.io
Methods in java.io that return File Modifier and Type 方法 描述 static FileFile. createTempFile(String prefix, String suffix)在默认临时文件目录中创建一个空文件,使用给定的前缀和后缀生成其名称。static FileFile. createTempFile(String prefix, String suffix, File directory)在指定的目录中创建一个新的空文件,使用给定的前缀和后缀字符串生成其名称。FileFile. getAbsoluteFile()返回此抽象路径名的绝对形式。FileFile. getCanonicalFile()返回此抽象路径名的规范形式。FileFile. getParentFile()返回此抽象路径名的父对象的抽象路径名,如果此路径名未指定父目录,则返回null。File[]File. listFiles()返回一个抽象路径名数组,表示由该抽象路径名表示的目录中的文件。File[]File. listFiles(FileFilter filter)返回一个抽象路径名数组,表示由此抽象路径名表示的满足指定过滤器的目录中的文件和目录。File[]File. listFiles(FilenameFilter filter)返回一个抽象路径名数组,表示由此抽象路径名表示的满足指定过滤器的目录中的文件和目录。static File[]File. listRoots()列出可用的文件系统根。Methods in java.io with parameters of type File Modifier and Type 方法 描述 booleanFileFilter. accept(File pathname)测试指定的抽象路径名是否应包含在路径名列表中。booleanFilenameFilter. accept(File dir, String name)测试指定文件是否应包含在文件列表中。intFile. compareTo(File pathname)比较两个抽象的路径名字典。static FileFile. createTempFile(String prefix, String suffix, File directory)在指定的目录中创建一个新的空文件,使用给定的前缀和后缀字符串生成其名称。booleanFile. renameTo(File dest)重命名由此抽象路径名表示的文件。Constructors in java.io with parameters of type File Constructor 描述 File(File parent, String child)从父抽象路径名和子路径名字符串创建新的File实例。FileInputStream(File file)通过打开与实际文件的连接来创建一个FileInputStream,该文件由文件系统中的File对象file命名。FileOutputStream(File file)创建文件输出流以写入由指定的File对象表示的文件。FileOutputStream(File file, boolean append)创建文件输出流以写入由指定的File对象表示的文件。FileReader(File file)创建一个新的FileReader,给出File读取。FileWriter(File file)给一个File对象构造一个FileWriter对象。FileWriter(File file, boolean append)给一个File对象构造一个FileWriter对象。PrintStream(File file)使用指定的文件创建一个新的打印流,而不需要自动换行。PrintStream(File file, String csn)使用指定的文件和字符集创建新的打印流,而不需要自动换行。PrintWriter(File file)使用指定的文件创建一个新的PrintWriter,而不需要自动的线路刷新。PrintWriter(File file, String csn)使用指定的文件和字符集创建一个新的PrintWriter,而不需要自动进行线条刷新。RandomAccessFile(File file, String mode)创建一个随机访问文件流,从File参数指定的文件读取,并可选择写入。 -
Uses of File in java.lang
Methods in java.lang that return File Modifier and Type 方法 描述 FileProcessBuilder. directory()返回此进程构建器的工作目录。FileProcessBuilder.Redirect. file()返回File源或目标与此重定向或相关null,如果没有这样的文件。Methods in java.lang with parameters of type File Modifier and Type 方法 描述 static ProcessBuilder.RedirectProcessBuilder.Redirect. appendTo(File file)返回重定向以附加到指定的文件。ProcessBuilderProcessBuilder. directory(File directory)设置此进程构建器的工作目录。ProcessRuntime. exec(String[] cmdarray, String[] envp, File dir)在指定的环境和工作目录的单独进程中执行指定的命令和参数。ProcessRuntime. exec(String command, String[] envp, File dir)在指定的环境和工作目录的单独进程中执行指定的字符串命令。static ProcessBuilder.RedirectProcessBuilder.Redirect. from(File file)返回从指定文件读取的重定向。ProcessBuilderProcessBuilder. redirectError(File file)将此流程构建器的标准错误目标设置为文件。ProcessBuilderProcessBuilder. redirectInput(File file)将此流程构建器的标准输入源设置为文件。ProcessBuilderProcessBuilder. redirectOutput(File file)将此流程构建器的标准输出目标设置为文件。static ProcessBuilder.RedirectProcessBuilder.Redirect. to(File file)返回写入指定文件的重定向。 -
Uses of File in java.nio.file
Methods in java.nio.file that return File Modifier and Type 方法 描述 default FilePath. toFile()返回表示此路径的File对象。 -
Uses of File in java.security
Methods in java.security with parameters of type File Modifier and Type 方法 描述 static KeyStoreKeyStore. getInstance(File file, char[] password)返回相应密钥库类型的加载密钥库对象。static KeyStoreKeyStore. getInstance(File file, KeyStore.LoadStoreParameter param)返回相应密钥库类型的加载密钥库对象。static KeyStore.BuilderKeyStore.Builder. newInstance(File file, KeyStore.ProtectionParameter protection)返回一个新的Builder对象。static KeyStore.BuilderKeyStore.Builder. newInstance(String type, Provider provider, File file, KeyStore.ProtectionParameter protection)返回一个新的Builder对象。 -
Uses of File in java.util
Constructors in java.util with parameters of type File Constructor 描述 Formatter(File file)使用指定的文件构造一个新的格式化程序。Formatter(File file, String csn)使用指定的文件和字符集构造一个新的格式化程序。Formatter(File file, String csn, Locale l)使用指定的文件,字符集和区域设置构造一个新的格式化程序。Scanner(File source)构造一个新的Scanner,产生从指定文件扫描的值。Scanner(File source, String charsetName)构造一个新的Scanner,产生从指定文件扫描的值。 -
Uses of File in java.util.jar
Methods in java.util.jar with parameters of type File Modifier and Type 方法 描述 voidPack200.Unpacker. unpack(File in, JarOutputStream out)读取Pack200存档,并将编码的JAR写入JarOutputStream。Constructors in java.util.jar with parameters of type File Constructor 描述 JarFile(File file)创建一个新的JarFile从指定的File读取对象。JarFile(File file, boolean verify)创建一个新的JarFile从指定的File对象读取。JarFile(File file, boolean verify, int mode)创建新的JarFile以指定的方式从指定的File对象中读取。JarFile(File file, boolean verify, int mode, Runtime.Version version)创建新的JarFile以指定的模式从指定的File对象读取。 -
Uses of File in java.util.zip
Constructors in java.util.zip with parameters of type File Constructor 描述 ZipFile(File file)打开一个ZIP文件,读取指定的File对象。ZipFile(File file, int mode)打开新的ZipFile以指定的方式读取指定的File对象。ZipFile(File file, int mode, Charset charset)打开一个新的ZipFile以指定的方式读取指定的File对象。ZipFile(File file, Charset charset)打开一个ZIP文件,读取指定的File对象。 -
Uses of File in javafx.css
Methods in javafx.css with parameters of type File Modifier and Type 方法 描述 static voidStylesheet. convertToBinary(File source, File destination)将urlIn引用的.css文件转换为二进制格式并写入urlOut。 -
Uses of File in javafx.scene.input
Methods in javafx.scene.input that return types with arguments of type File Modifier and Type 方法 描述 List<File>Clipboard. getFiles()从先前已注册的剪贴板获取文件列表。List<File>ClipboardContent. getFiles()从以前已经放置的ClipboardContent获取文件列表。Method parameters in javafx.scene.input with type arguments of type File Modifier and Type 方法 描述 booleanClipboardContent. putFiles(List<File> files)将文件列表放入ClipboardContent。 -
Uses of File in javafx.scene.web
Methods in javafx.scene.web that return File Modifier and Type 方法 描述 FileWebEngine. getUserDataDirectory()获取属性userDataDirectory的值。Methods in javafx.scene.web that return types with arguments of type File Modifier and Type 方法 描述 ObjectProperty<File>WebEngine. userDataDirectoryProperty()指定此WebEngine用于存储本地用户数据的目录。Methods in javafx.scene.web with parameters of type File Modifier and Type 方法 描述 voidWebEngine. setUserDataDirectory(File value)设置属性userDataDirectory的值。 -
Uses of File in javafx.stage
Methods in javafx.stage that return File Modifier and Type 方法 描述 FileDirectoryChooser. getInitialDirectory()获取属性initialDirectory的值。FileFileChooser. getInitialDirectory()获取属性initialDirectory的值。FileDirectoryChooser. showDialog(Window ownerWindow)显示新的目录选择对话框。FileFileChooser. showOpenDialog(Window ownerWindow)显示一个新的文件打开对话框。FileFileChooser. showSaveDialog(Window ownerWindow)显示一个新的文件保存对话框。Methods in javafx.stage that return types with arguments of type File Modifier and Type 方法 描述 ObjectProperty<File>DirectoryChooser. initialDirectoryProperty()显示对话框的初始目录。ObjectProperty<File>FileChooser. initialDirectoryProperty()显示文件对话框的初始目录。List<File>FileChooser. showOpenMultipleDialog(Window ownerWindow)显示一个新的文件打开对话框,其中可以选择多个文件。Methods in javafx.stage with parameters of type File Modifier and Type 方法 描述 voidDirectoryChooser. setInitialDirectory(File value)设置属性initialDirectory的值。voidFileChooser. setInitialDirectory(File value)设置属性initialDirectory的值。 -
Uses of File in javax.activation
Methods in javax.activation that return File Modifier and Type 方法 描述 FileFileDataSource. getFile()返回与此FileDataSource对应的File对象。Methods in javax.activation with parameters of type File Modifier and Type 方法 描述 abstract StringFileTypeMap. getContentType(File file)返回文件对象的类型。StringMimetypesFileTypeMap. getContentType(File f)返回文件对象的MIME类型。Constructors in javax.activation with parameters of type File Constructor 描述 FileDataSource(File file)从File对象创建FileDataSource。 -
Uses of File in javax.imageio
Methods in javax.imageio that return File Modifier and Type 方法 描述 static FileImageIO. getCacheDirectory()返回当前值设置由setCacheDirectory,或null如果没有明确的设定已经取得进展。Methods in javax.imageio with parameters of type File Modifier and Type 方法 描述 static BufferedImageImageIO. read(File input)作为对所提供的File进行解码的结果,返回BufferedImage,其中自动从当前注册的ImageReader选择。static voidImageIO. setCacheDirectory(File cacheDirectory)设置要创建缓存文件的目录。static booleanImageIO. write(RenderedImage im, String formatName, File output)使用支持给定格式的任意ImageWriter写入图像到File。 -
Uses of File in javax.imageio.spi
Methods in javax.imageio.spi with parameters of type File Modifier and Type 方法 描述 abstract ImageInputStreamImageInputStreamSpi. createInputStreamInstance(Object input, boolean useCache, File cacheDir)返回与此服务提供商相关联的ImageInputStream实现的实例。abstract ImageOutputStreamImageOutputStreamSpi. createOutputStreamInstance(Object output, boolean useCache, File cacheDir)返回与该服务提供商相关联的ImageOutputStream实现的实例。 -
Uses of File in javax.imageio.stream
Constructors in javax.imageio.stream with parameters of type File Constructor 描述 FileCacheImageInputStream(InputStream stream, File cacheDir)构造一个FileCacheImageInputStream,它将从给定的InputStream读取。FileCacheImageOutputStream(OutputStream stream, File cacheDir)构造一个FileCacheImageOutputStream,它将写入给定的outputStream。FileImageInputStream(File f)构造一个FileImageInputStream,它将从给定的File读取。FileImageOutputStream(File f)构造一个FileImageOutputStream,它将写入给定的File。 -
Uses of File in javax.jnlp
Methods in javax.jnlp with parameters of type File Modifier and Type 方法 描述 FileContentsExtendedService. openFile(File file)允许应用程序打开指定的文件,即使应用程序在不受信任的执行环境中运行。FileContents[]ExtendedService. openFiles(File[] files)允许应用程序打开指定的文件,即使应用程序在不受信任的执行环境中运行。 -
Uses of File in javax.security.auth.kerberos
Methods in javax.security.auth.kerberos with parameters of type File Modifier and Type 方法 描述 static KeyTabKeyTab. getInstance(File file)从绑定到未知服务主体的File对象返回KeyTab实例。static KeyTabKeyTab. getInstance(KerberosPrincipal princ, File file)从绑定到指定服务主体的File对象返回一个KeyTab实例。static KeyTabKeyTab. getUnboundInstance(File file)从File对象返回未绑定的KeyTab实例。 -
Uses of File in javax.sound.midi
Methods in javax.sound.midi with parameters of type File Modifier and Type 方法 描述 static MidiFileFormatMidiSystem. getMidiFileFormat(File file)获取指定的File的MIDI文件格式。static SequenceMidiSystem. getSequence(File file)从指定的File获取MIDI序列。static SoundbankMidiSystem. getSoundbank(File file)构造一个Soundbank通过从指定的阅读它File。static intMidiSystem. write(Sequence in, int type, File out)写入表示所提供外部文件的MIDI文件类型的文件的字节流。 -
Uses of File in javax.sound.midi.spi
Methods in javax.sound.midi.spi with parameters of type File Modifier and Type 方法 描述 abstract MidiFileFormatMidiFileReader. getMidiFileFormat(File file)获得提供的File的MIDI文件格式。abstract SequenceMidiFileReader. getSequence(File file)从提供的File获取MIDI序列。abstract SoundbankSoundbankReader. getSoundbank(File file)从提供的File获取一个File库对象。abstract intMidiFileWriter. write(Sequence in, int fileType, File out)写入表示所提供外部文件的文件类型的MIDI文件的字节流。 -
Uses of File in javax.sound.sampled
Methods in javax.sound.sampled with parameters of type File Modifier and Type 方法 描述 static AudioFileFormatAudioSystem. getAudioFileFormat(File file)获取指定的File的音频文件格式。static AudioInputStreamAudioSystem. getAudioInputStream(File file)从提供的File获取音频输入流。static intAudioSystem. write(AudioInputStream stream, AudioFileFormat.Type fileType, File out)将指定文件类型的音频文件的字节流写入提供的外部文件。 -
Uses of File in javax.sound.sampled.spi
Methods in javax.sound.sampled.spi with parameters of type File Modifier and Type 方法 描述 abstract AudioFileFormatAudioFileReader. getAudioFileFormat(File file)获得提供的File的音频文件格式。abstract AudioInputStreamAudioFileReader. getAudioInputStream(File file)从提供的File获取音频输入流。abstract intAudioFileWriter. write(AudioInputStream stream, AudioFileFormat.Type fileType, File out)将表示所提供的外部文件的文件格式的音频文件的字节流写入。 -
Uses of File in javax.swing
Methods in javax.swing that return File Modifier and Type 方法 描述 FileJFileChooser. getCurrentDirectory()返回当前目录。FileJFileChooser. getSelectedFile()返回所选文件。File[]JFileChooser. getSelectedFiles()如果文件选择器设置为允许多个选择,则返回所选文件的列表。Methods in javax.swing with parameters of type File Modifier and Type 方法 描述 booleanJFileChooser. accept(File f)如果文件应该显示,则返回true。voidJFileChooser. ensureFileIsVisible(File f)确保指定的文件是可见的,而不是隐藏。StringJFileChooser. getDescription(File f)返回文件描述。IconJFileChooser. getIcon(File f)返回此文件或文件类型的图标,具体取决于系统。StringJFileChooser. getName(File f)返回文件名。StringJFileChooser. getTypeDescription(File f)返回文件类型。booleanJFileChooser. isTraversable(File f)如果可以访问文件(目录),则返回true。voidJFileChooser. setCurrentDirectory(File dir)设置当前目录。voidJFileChooser. setSelectedFile(File file)设置所选文件。voidJFileChooser. setSelectedFiles(File[] selectedFiles)如果文件选择器设置为允许多个选择,则设置所选文件的列表。Constructors in javax.swing with parameters of type File Constructor 描述 JFileChooser(File currentDirectory)构造一个JFileChooser使用给定的File作为路径。JFileChooser(File currentDirectory, FileSystemView fsv)构造一个JFileChooser使用给定的当前目录和FileSystemView。 -
Uses of File in javax.swing.filechooser
Methods in javax.swing.filechooser that return File Modifier and Type 方法 描述 FileFileSystemView. createFileObject(File dir, String filename)返回从给定文件名在dir中构造的File对象。FileFileSystemView. createFileObject(String path)返回从给定的路径字符串构造的File对象。protected FileFileSystemView. createFileSystemRoot(File f)为f创建一个新的File对象,具有文件系统根目录的正确行为。abstract FileFileSystemView. createNewFolder(File containingDir)创建一个具有默认文件夹名称的新文件夹。FileFileSystemView. getChild(File parent, String fileName)File[]FileSystemView. getChooserComboBoxFiles()返回一个表示要在文件选择器选择器中默认显示的值的文件数组。FileFileSystemView. getDefaultDirectory()返回用户的文件选择器的默认启动目录。File[]FileSystemView. getFiles(File dir, boolean useFileHiding)获取显示的列表(即不隐藏)文件。FileFileSystemView. getHomeDirectory()返回主目录。FileFileSystemView. getLinkLocation(File file)如果指定的文件是shell解释链接,则返回指定链接文件引用的常规文件。FileFileSystemView. getParentDirectory(File dir)返回父目录dir。File[]FileSystemView. getRoots()返回此系统上的所有根分区。Methods in javax.swing.filechooser with parameters of type File Modifier and Type 方法 描述 abstract booleanFileFilter. accept(File f)该过滤器是否接受给定的文件。booleanFileNameExtensionFilter. accept(File f)测试指定的文件,如果文件被接受则返回true,否则返回false。FileFileSystemView. createFileObject(File dir, String filename)返回从给定文件名在dir中构造的File对象。protected FileFileSystemView. createFileSystemRoot(File f)为f创建一个新的File对象,具有文件系统根目录的正确行为。abstract FileFileSystemView. createNewFolder(File containingDir)创建一个具有默认文件夹名称的新文件夹。FileFileSystemView. getChild(File parent, String fileName)StringFileView. getDescription(File f)该文件的人类可读描述。File[]FileSystemView. getFiles(File dir, boolean useFileHiding)获取显示的列表(即不隐藏)文件。IconFileView. getIcon(File f)在JFileChooser中表示此文件的JFileChooser。FileFileSystemView. getLinkLocation(File file)如果指定的文件是shell解释链接,则返回指定链接文件引用的常规文件。StringFileView. getName(File f)文件的名称。FileFileSystemView. getParentDirectory(File dir)返回父目录dir。StringFileSystemView. getSystemDisplayName(File f)在系统文件浏览器中显示的文件,目录或文件夹的名称。IconFileSystemView. getSystemIcon(File f)文件,目录或文件夹的图标,将显示在系统文件浏览器中。StringFileSystemView. getSystemTypeDescription(File f)键入在系统文件浏览器中显示的文件,目录或文件夹的描述。StringFileView. getTypeDescription(File f)对文件类型的可读描述。booleanFileSystemView. isComputerNode(File dir)由UI类用于决定是否显示计算机节点的特殊图标,例如booleanFileSystemView. isDrive(File dir)由UI类用于决定是否显示驱动器或分区的特殊图标,例如“硬盘”图标。booleanFileSystemView. isFileSystem(File f)检查是否f代表一个真正的目录或文件,而不是一个特殊的文件夹,如"Desktop"。booleanFileSystemView. isFileSystemRoot(File dir)dir是文件系统中树的根,例如驱动器或分区。booleanFileSystemView. isFloppyDrive(File dir)由UI类用于决定是否显示软盘的特殊图标。booleanFileSystemView. isHiddenFile(File f)返回文件是否被隐藏。booleanFileSystemView. isLink(File file)返回指定的文件是否表示可以通过FileSystemView.getLinkLocation(File)获取的shell解释链接。booleanFileSystemView. isParent(File folder, File file)在Windows上,文件可以出现在多个文件夹中,而不是文件系统中的父目录。booleanFileSystemView. isRoot(File f)确定给定文件是否是可导航树中的根。BooleanFileSystemView. isTraversable(File f)如果可以访问文件(目录),则返回true。BooleanFileView. isTraversable(File f)该目录是否可遍历。 -
Uses of File in javax.swing.plaf
Methods in javax.swing.plaf with parameters of type File Modifier and Type 方法 描述 abstract voidFileChooserUI. ensureFileIsVisible(JFileChooser fc, File f)确保有问题的文件是可见的。 -
Uses of File in javax.swing.plaf.basic
Fields in javax.swing.plaf.basic with type parameters of type File Modifier and Type Field 描述 protected Hashtable<File,Icon>BasicFileChooserUI.BasicFileView. iconCache图标缓存Methods in javax.swing.plaf.basic that return File Modifier and Type 方法 描述 protected FileBasicFileChooserUI. getDirectory()要记住UI中当前选择的目录的属性。Methods in javax.swing.plaf.basic that return types with arguments of type File Modifier and Type 方法 描述 Vector<File>BasicDirectoryModel. getDirectories()返回目录列表。Vector<File>BasicDirectoryModel. getFiles()返回文件列表。Methods in javax.swing.plaf.basic with parameters of type File Modifier and Type 方法 描述 booleanBasicFileChooserUI.AcceptAllFileFilter. accept(File f)返回true。voidBasicFileChooserUI.BasicFileView. cacheIcon(File f, Icon i)缓存文件的图标。voidBasicFileChooserUI. ensureFileIsVisible(JFileChooser fc, File f)确保有问题的文件是可见的。IconBasicFileChooserUI.BasicFileView. getCachedIcon(File f)返回文件的缓存图标。StringBasicFileChooserUI.BasicFileView. getDescription(File f)该文件的人类可读描述。IconBasicFileChooserUI.BasicFileView. getIcon(File f)在JFileChooser中代表此文件的JFileChooser。StringBasicFileChooserUI.BasicFileView. getName(File f)文件的名称。StringBasicFileChooserUI.BasicFileView. getTypeDescription(File f)对文件类型的可读描述。BooleanBasicFileChooserUI.BasicFileView. isHidden(File f)返回是否隐藏文件。protected booleanBasicDirectoryModel. lt(File a, File b)已过时 - 未使用booleanBasicDirectoryModel. renameFile(File oldFile, File newFile)重命名底层文件系统中的文件。protected voidBasicFileChooserUI. setDirectory(File f)要记住UI中当前选择的目录的属性。Method parameters in javax.swing.plaf.basic with type arguments of type File Modifier and Type 方法 描述 protected voidBasicDirectoryModel. sort(Vector<? extends File> v)排序文件列表。 -
Uses of File in javax.swing.plaf.metal
Methods in javax.swing.plaf.metal with parameters of type File Modifier and Type 方法 描述 voidMetalFileChooserUI. ensureFileIsVisible(JFileChooser fc, File f) -
Uses of File in javax.swing.plaf.multi
Methods in javax.swing.plaf.multi with parameters of type File Modifier and Type 方法 描述 voidMultiFileChooserUI. ensureFileIsVisible(JFileChooser a, File b)在此对象处理的每个UI上调用ensureFileIsVisible方法。 -
Uses of File in javax.tools
Methods in javax.tools that return types with arguments of type File Modifier and Type 方法 描述 Iterable<? extends File>StandardJavaFileManager. getLocation(JavaFileManager.Location location)返回与给定位置相关联的搜索路径。Methods in javax.tools with parameters of type File Modifier and Type 方法 描述 Iterable<? extends JavaFileObject>StandardJavaFileManager. getJavaFileObjects(File... files)返回表示给定文件的文件对象。Method parameters in javax.tools with type arguments of type File Modifier and Type 方法 描述 Iterable<? extends JavaFileObject>StandardJavaFileManager. getJavaFileObjectsFromFiles(Iterable<? extends File> files)返回表示给定文件的文件对象。voidStandardJavaFileManager. setLocation(JavaFileManager.Location location, Iterable<? extends File> files)将给定的搜索路径与给定位置相关联。 -
Uses of File in javax.xml.bind
Methods in javax.xml.bind with parameters of type File Modifier and Type 方法 描述 static voidJAXB. marshal(Object jaxbObject, File xml)将Java对象树写入XML并将其存储到指定的位置。voidMarshaller. marshal(Object jaxbElement, File output)将根据jaxbElement的内容树jaxbElement到一个文件中。static <T> TJAXB. unmarshal(File xml, Class<T> type)从给定的XML输入中读取Java对象树。ObjectUnmarshaller. unmarshal(File f)从指定的文件解组XML数据并返回生成的内容树。 -
Uses of File in javax.xml.bind.helpers
Methods in javax.xml.bind.helpers with parameters of type File Modifier and Type 方法 描述 voidAbstractMarshallerImpl. marshal(Object jaxbElement, File output)ObjectAbstractUnmarshallerImpl. unmarshal(File f) -
Uses of File in javax.xml.parsers
Methods in javax.xml.parsers with parameters of type File Modifier and Type 方法 描述 DocumentDocumentBuilder. parse(File f)将给定文件的内容解析为XML文档,并返回一个新的DOMDocument对象。voidSAXParser. parse(File f, HandlerBase hb)使用指定的HandlerBase解析指定为XML的文件的内容。voidSAXParser. parse(File f, DefaultHandler dh)使用指定的DefaultHandler解析指定为XML的文件的内容。 -
Uses of File in javax.xml.transform.stream
Methods in javax.xml.transform.stream with parameters of type File Modifier and Type 方法 描述 voidStreamResult. setSystemId(File f)从File参考设置系统ID。voidStreamSource. setSystemId(File f)从文件引用设置系统ID。Constructors in javax.xml.transform.stream with parameters of type File Constructor 描述 StreamResult(File f)从文件构造一个StreamResult。StreamSource(File f)从文件构造一个StreamSource。 -
Uses of File in javax.xml.validation
Methods in javax.xml.validation with parameters of type File Modifier and Type 方法 描述 SchemaSchemaFactory. newSchema(File schema)将指定的File解析为模式,并将其作为Schema返回。 -
Uses of File in jdk.nashorn.api.tree
Methods in jdk.nashorn.api.tree with parameters of type File Modifier and Type 方法 描述 CompilationUnitTreeParser. parse(File file, DiagnosticListener listener)解析源文件并返回编译单元树
-