Method exists()
Return type: boolean
Member of:
java.io.File
[
api documentation
] [
main menu
]
Examples of how the element is used
(one line per example):
[
add your own example
]
1
if ( file.exists() ) {
2
if (!original.exists())
3
System.out.println(f + ":" + f.exists());
4
if(exists()) {
5
if (localFile.exists())
6
if( !file.exists() || !file.isFile() )
7
if (file.exists()) url = file.toURL();
8
if (getMetaFile().exists()) {
9
if (!jpDir.exists()) jpDir.mkdirs();
10
if ( !collectionRoot.exists() )
11
if (cacheFile.exists() && !cacheFile.delete()) {
12
assertTrue( "Check No Exist", !m_testDirectory.getParentFile().exists() );
13
assertFalse("File delete failed", tmpFile.exists());
14
if (!projDir.exists()) {
15
if (file.exists ())
16
if (!f.exists())
17
if( toCreate.exists() )
18
if(!srcFile.exists() || destFile.exists()) return;
19
if (merge && outputFile.exists()) {
20
if (!file.exists())
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.