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