IOUtils.java revision 1461
289N/A * The contents of this file are subject to the terms of the 289N/A * Common Development and Distribution License (the "License"). 289N/A * You may not use this file except in compliance with the License. 289N/A * language governing permissions and limitations under the License. 289N/A * When distributing Covered Code, include this CDDL HEADER in each 289N/A * If applicable, add the following below this CDDL HEADER, with the 289N/A * fields enclosed by brackets "[]" replaced with your own identifying 289N/A * information: Portions Copyright [yyyy] [name of copyright owner] 289N/A * Copyright (c) 2011 Trond Norbye 289N/A * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. 289N/A * A small utility class to provide common functionality related to 289N/A * IO so that we don't need to duplicate the logic all over the place. 289N/A * @author Trond Norbye <trond.norbye@gmail.com> 536N/A * Try to close the given object if not {@code null} and log errors if an 552N/A * @param c object to close. 289N/A // Lucene's Analyzer tends to throw it sometimes, but not always 289N/A * Try to close the given socket if not {@code null} and log errors if an 289N/A * @param sock socket to close. 289N/A * Try to close the given socket if not {@code null} and log errors if an 289N/A * @param sock socket to close.