Here you can find the source of closeQuietly(Reader r)
Parameter | Description |
---|---|
errorReader2 | a parameter |
private void closeQuietly(Reader r)
//package com.java2s; /******************************************************************************* * Copyright (c) 2005, 2007 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * // w ww . java 2 s . c om *******************************************************************************/ import java.io.IOException; import java.io.Reader; import java.io.Writer; public class Main { /** * @param errorReader2 */ private void closeQuietly(Reader r) { try { r.close(); } catch (IOException e) { // ignore } } private static void closeQuietly(Writer w) { try { w.close(); } catch (IOException e) { // ignore } } }