@Test public void testExists() throws Exception { assertEquals( true, fileManipulator.exists( "http: assertEquals( false, fileManipulator.exists( "http: }
public boolean exists( String vfsPath ) { FileObject fileObject = null; try { fileObject = this.resolveFile( vfsPath ); return fileObject.exists(); } catch ( Exception e ) { LOGGER.warn( "Can't check if the VFS path {} exists", vfsPath, e ); return false; } finally { if ( fileObject != null ) { try { fileObject.close(); } catch ( Exception e ) { } } } }
FileManipulator { public boolean exists( String vfsPath ) { FileObject fileObject = null; try { fileObject = this.resolveFile( vfsPath ); return fileObject.exists(); } catch ( Exception e ) { LOGGER.warn( "Can't check if the VFS path {} exists", vfsPath, e ); return false; } finally { if ( fileObject != null ) { try { fileObject.close(); } catch ( Exception e ) { } } } } }
FileManipulator { public boolean exists( String vfsPath ) { FileObject fileObject = null; try { fileObject = this.resolveFile( vfsPath ); return fileObject.exists(); } catch ( Exception e ) { LOGGER.warn( "Can't check if the VFS path {} exists", vfsPath, e ); return false; } finally { if ( fileObject != null ) { try { fileObject.close(); } catch ( Exception e ) { } } } } FileManipulator(); }
FileManipulator { public boolean exists( String vfsPath ) { FileObject fileObject = null; try { fileObject = this.resolveFile( vfsPath ); return fileObject.exists(); } catch ( Exception e ) { LOGGER.warn( "Can't check if the VFS path {} exists", vfsPath, e ); return false; } finally { if ( fileObject != null ) { try { fileObject.close(); } catch ( Exception e ) { } } } } FileManipulator(); void close(); static String getBaseDir(); FileObject resolveFile( String vfsPath ); boolean exists( String vfsPath ); boolean contentEquals( String src, String dest ); boolean checksumEquals( String src, String dest ); void copy( String src, String dest ); boolean isFolder( String vfsPath ); FileObject[] browse( String vfsPath ); InputStream read( String vfsPath ); OutputStream write( String vfsPath ); static String createEnvironmentCacheDir( Environment environment ); static String createJEEApplicationCacheDir( Environment environment, JEEApplication jeeApplication ); static String createSoftwareCacheDir( Environment environment, Software software ); void createDirectory( String path ); static boolean protocolExists( String path ); static String format( String url ); void delete( String path ); static void searchAndReplace( String path, String regex, String substitute ); }
FileManipulator { public boolean exists( String vfsPath ) { FileObject fileObject = null; try { fileObject = this.resolveFile( vfsPath ); return fileObject.exists(); } catch ( Exception e ) { LOGGER.warn( "Can't check if the VFS path {} exists", vfsPath, e ); return false; } finally { if ( fileObject != null ) { try { fileObject.close(); } catch ( Exception e ) { } } } } FileManipulator(); void close(); static String getBaseDir(); FileObject resolveFile( String vfsPath ); boolean exists( String vfsPath ); boolean contentEquals( String src, String dest ); boolean checksumEquals( String src, String dest ); void copy( String src, String dest ); boolean isFolder( String vfsPath ); FileObject[] browse( String vfsPath ); InputStream read( String vfsPath ); OutputStream write( String vfsPath ); static String createEnvironmentCacheDir( Environment environment ); static String createJEEApplicationCacheDir( Environment environment, JEEApplication jeeApplication ); static String createSoftwareCacheDir( Environment environment, Software software ); void createDirectory( String path ); static boolean protocolExists( String path ); static String format( String url ); void delete( String path ); static void searchAndReplace( String path, String regex, String substitute );  }