Code example for Closeable

Methods: close

0
    } 
     
    public static void close(Closeable c){
    	try{ 
    		if(c != null){
    			c.close();
    		} 
    	}catch(Exception e){   		
    	} 
    } 
    
	 
	private static ScheduledExecutorService storeExe;
	private static ScheduledExecutorService getFileStoreExecutor(){
		 
		if(storeExe == null){
			storeExe = Executors.newSingleThreadScheduledExecutor();
		} 
		 
		return storeExe;
	}