Uses of Class
java.io.File
| Package | Description |
|---|---|
| com.squareup.okhttp | |
| com.squareup.okhttp.internal | |
| java.io | |
| java.lang | |
| java.security |
Extensible cryptographic service provider infrastructure (SPI) for using
and defining services such as
Certificates,
Keys, KeyStores, MessageDigests, and Signatures. |
| java.util | |
| java.util.jar | |
| java.util.zip | |
| javax.xml.parsers | |
| javax.xml.transform.stream | |
| javax.xml.validation | |
| libcore.io | |
| org.apache.http.entity |
Representations for HTTP message entities.
|
| org.conscrypt |
-
Uses of File in com.squareup.okhttp
Methods in com.squareup.okhttp that return File Modifier and Type Method Description FileHttpResponseCache. getDirectory()Methods in com.squareup.okhttp with parameters of type File Modifier and Type Method Description static Request.BodyRequest.Body. create(MediaType contentType, File file)Returns a new request body that transmits the content offile.Constructors in com.squareup.okhttp with parameters of type File Constructor Description HttpResponseCache(File directory, long maxSize) -
Uses of File in com.squareup.okhttp.internal
Methods in com.squareup.okhttp.internal that return File Modifier and Type Method Description FileDiskLruCache. getDirectory()Returns the directory where this cache stores its data.Methods in com.squareup.okhttp.internal with parameters of type File Modifier and Type Method Description static voidUtil. deleteContents(File dir)Deletes the contents ofdir.static DiskLruCacheDiskLruCache. open(File directory, int appVersion, int valueCount, long maxSize)Opens the cache indirectory, creating a cache if none exists there. -
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 temporary file using the given prefix and suffix as part of the file name.static FileFile. createTempFile(String prefix, String suffix, File directory)Creates an empty temporary file in the given directory using the given prefix and suffix as part of the file name.FileFile. getAbsoluteFile()Returns a new file constructed using the absolute path of this file.FileFile. getCanonicalFile()Returns a new file created using the canonical path of this file.FileFile. getParentFile()Returns a new file made from the pathname of the parent of this file.File[]File. listFiles()Returns an array of files contained in the directory represented by this file.File[]File. listFiles(FileFilter filter)Gets a list of the files in the directory represented by this file.File[]File. listFiles(FilenameFilter filter)Gets a list of the files in the directory represented by this file.static File[]File. listRoots()Returns the file system roots.Methods in java.io with parameters of type File Modifier and Type Method Description booleanFileFilter. accept(File pathname)Indicating whether a specific file should be included in a pathname list.booleanFilenameFilter. accept(File dir, String filename)Indicates if a specific filename matches this filter.intFile. compareTo(File another)Returns the relative sort ordering of the paths for this file and the fileanother.static FileFile. createTempFile(String prefix, String suffix, File directory)Creates an empty temporary file in the given directory using the given prefix and suffix as part of the file name.booleanFile. renameTo(File newPath)Renames this file tonewPath.Constructors in java.io with parameters of type File Constructor Description File(File dir, String name)Constructs a new file using the specified directory and name.FileInputStream(File file)Constructs a newFileInputStreamthat reads fromfile.FileOutputStream(File file)Constructs a newFileOutputStreamthat writes tofile.FileOutputStream(File file, boolean append)Constructs a newFileOutputStreamthat writes tofile.FileReader(File file)Constructs a new FileReader on the givenfile.FileWriter(File file)Creates a FileWriter using the Filefile.FileWriter(File file, boolean append)Creates a FileWriter using the Filefile.PrintStream(File file)Constructs a newPrintStreamwithfileas its target.PrintStream(File file, String charsetName)Constructs a newPrintStreamwithfileas its target.PrintWriter(File file)Constructs a newPrintWriterwithfileas its target.PrintWriter(File file, String csn)Constructs a newPrintWriterwithfileas its target.RandomAccessFile(File file, String mode)Constructs a newRandomAccessFilebased onfileand opens it according to the access string inmode. -
Uses of File in java.lang
Methods in java.lang that return File Modifier and Type Method Description FileProcessBuilder. directory()Returns the working directory of this process builder.Methods in java.lang with parameters of type File Modifier and Type Method Description ProcessBuilderProcessBuilder. directory(File directory)Changes the working directory of this process builder.ProcessRuntime. exec(String[] progArray, String[] envp, File directory)Executes the specified command and its arguments in a separate native process.ProcessRuntime. exec(String prog, String[] envp, File directory)Executes the specified program in a separate native process. -
Uses of File in java.security
Methods in java.security with parameters of type File Modifier and Type Method Description static KeyStore.BuilderKeyStore.Builder. newInstance(String type, Provider provider, File file, KeyStore.ProtectionParameter protectionParameter)Returns a newBuilderthat creates a newKeyStorebased on the provided arguments. -
Uses of File in java.util
Constructors in java.util with parameters of type File Constructor Description Formatter(File file)Constructs aFormatterwhose output is written to the specifiedFile.Formatter(File file, String csn)Constructs aFormatterwith the given charset, and whose output is written to the specifiedFile.Formatter(File file, String csn, Locale l)Constructs aFormatterwith the givenLocaleand charset, and whose output is written to the specifiedFile.Scanner(File src)Creates aScannerwith the specifiedFileas input.Scanner(File src, String charsetName)Creates aScannerwith the specifiedFileas input. -
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)Unpack the contents of the specifiedFileto the specified JAR output stream.Constructors in java.util.jar with parameters of type File Constructor Description JarFile(File file)Create a newJarFileusing the contents of the specified file.JarFile(File file, boolean verify)Create a newJarFileusing the contents of the specified file.JarFile(File file, boolean verify, int mode)Create a newJarFileusing the contents of file. -
Uses of File in java.util.zip
-
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 libcore.io
Methods in libcore.io that return File Modifier and Type Method Description static FileIoUtils. createTemporaryDirectory(String prefix)Creates a unique new temporary directory under "java.io.tmpdir".Methods in libcore.io with parameters of type File Modifier and Type Method Description static voidIoUtils. deleteContents(File dir)Deprecated. -
Uses of File in org.apache.http.entity
Fields in org.apache.http.entity declared as File Modifier and Type Field Description protected FileFileEntity. fileConstructors in org.apache.http.entity with parameters of type File Constructor Description FileEntity(File file, String contentType) -
Uses of File in org.conscrypt
Methods in org.conscrypt with parameters of type File Modifier and Type Method Description static SSLClientSessionCacheFileClientSessionCache. usingDirectory(File directory)Returns a cache backed by the given directory.Constructors in org.conscrypt with parameters of type File Constructor Description TrustedCertificateStore(File systemDir, File addedDir, File deletedDir)
IoUtils.createTemporaryDirectory(java.lang.String)instead.