Code example for Flushable

Methods: flush

0
	// ----------------------------------------------------------------------------------------------- 
 
	private static void flush(Flushable f) {
		if (f == null) return;
		try { 
			f.flush();
		} catch (IOException e) {
			e.printStackTrace();
		} 
	} 
 
	// ----------------------------------------------------------------------------------------------- 
 
	public static File getMapsDirectory(Context context) {
		File root = Environment.getExternalStorageDirectory();
		File dir = new File(root.getAbsolutePath() + "/Android/data/" + context.getPackageName() + "/files/maps");
		dir.mkdirs();
 
		return dir;
	} 
Connect your IDE to all the code out there  Get Codota for Java