Code example for Closeable

Methods: close

0
	 *            The output stream to close 
	 */ 
	public static void close(Closeable closable) {
		if (closable != null) {
			try { 
				closable.close();
			} catch (IOException e) {
				Logger.error(Closer.class, "Error during close() on "+closable, e);
			} 
		} 
	} 
	 
	/** 
	 * Frees the given bucket. Notice that you have to do removeFrom() for persistent buckets yourself. 
	 * @param bucket The Bucket to close. 
	 */ 
	public static void close(Bucket bucket) {
		if (bucket != null) {
			try {  
				bucket.free();
			} catch(RuntimeException e) {