Uses of Class
java.io.FileNotFoundException
| Package | Description |
|---|---|
| java.io | |
| java.util | |
| libcore.io |
-
Uses of FileNotFoundException in java.io
Constructors in java.io that throw FileNotFoundException Constructor Description FileInputStream(File file)Constructs a newFileInputStreamthat reads fromfile.FileInputStream(String path)Equivalent tonew FileInputStream(new File(path)).FileOutputStream(File file)Constructs a newFileOutputStreamthat writes tofile.FileOutputStream(File file, boolean append)Constructs a newFileOutputStreamthat writes tofile.FileOutputStream(String path)Constructs a newFileOutputStreamthat writes topath.FileOutputStream(String path, boolean append)Constructs a newFileOutputStreamthat writes topath.FileReader(File file)Constructs a new FileReader on the givenfile.FileReader(String filename)Construct a new FileReader on the given file namedfilename.PrintStream(File file)Constructs a newPrintStreamwithfileas its target.PrintStream(File file, String charsetName)Constructs a newPrintStreamwithfileas its target.PrintStream(String fileName)Constructs a newPrintStreamwith the file identified byfileNameas its target.PrintStream(String fileName, String charsetName)Constructs a newPrintStreamwith the file identified byfileNameas its target.PrintWriter(File file)Constructs a newPrintWriterwithfileas its target.PrintWriter(File file, String csn)Constructs a newPrintWriterwithfileas its target.PrintWriter(String fileName)Constructs a newPrintWriterwith the file identified byfileNameas its target.PrintWriter(String fileName, String csn)Constructs a newPrintWriterwith the file identified byfileNameas its target.RandomAccessFile(File file, String mode)Constructs a newRandomAccessFilebased onfileand opens it according to the access string inmode.RandomAccessFile(String fileName, String mode)Constructs a newRandomAccessFilebased on the file namedfileNameand opens it according to the access string inmode. -
Uses of FileNotFoundException in java.util
Constructors in java.util that throw FileNotFoundException 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.Formatter(String fileName)Constructs aFormatterwhose output is written to the specified file.Formatter(String fileName, String csn)Constructs aFormatterwhose output is written to the specified file.Formatter(String fileName, String csn, Locale l)Constructs aFormatterwith the givenLocaleand charset, and whose output is written to the specified file.Scanner(File src)Creates aScannerwith the specifiedFileas input.Scanner(File src, String charsetName)Creates aScannerwith the specifiedFileas input. -
Uses of FileNotFoundException in libcore.io
Methods in libcore.io that throw FileNotFoundException Modifier and Type Method Description static FileDescriptorIoBridge. open(String path, int flags)java.io only throws FileNotFoundException when opening files, regardless of what actually went wrong.