Here you can find the source of closeReader(Reader rReader)
Parameter | Description |
---|---|
rReader | The reader to be closed. If it is null, this method does nothing. |
public static void closeReader(Reader rReader)
//package com.java2s; //License from project: Apache License import java.io.IOException; import java.io.Reader; public class Main { /**/*from w ww .jav a 2 s . com*/ * Closes a reader. This ignores all exceptions that might be thrown. * * @param rReader The reader to be closed. If it is null, this method does nothing. */ public static void closeReader(Reader rReader) { try { if (rReader != null) { rReader.close(); } } catch (IOException ignored) { } } }