List of usage examples for java.io Closeable close
public void close() throws IOException;
From source file:br.msf.commons.util.IOUtils.java
public static void closeQuietly(final Closeable closeable) { try {/*from w w w . j ava 2 s . co m*/ if (closeable != null) { closeable.close(); } } catch (IOException ioe) { // ignore } }
From source file:org.rhq.plugins.netservices.PortNetServiceComponent.java
private void closeQuietly(Closeable closeable) { try {/*from w ww .j a va 2 s. c o m*/ closeable.close(); } catch (IOException ignore) { } }
From source file:org.seedstack.io.supercsv.internal.SuperCsvRenderer.java
private void closeQuietly(Closeable closeable) { try {// www . j a va 2 s. c om if (closeable != null) { closeable.close(); } } catch (IOException e) { LOGGER.error(e.getMessage(), e); } }
From source file:uk.codingbadgers.bootstrap.download.EtagDownload.java
private void close(Closeable closeable) { if (closeable != null) { try {/*from w w w. j a v a2s. c o m*/ closeable.close(); } catch (IOException e) { e.printStackTrace(); } } }
From source file:io.cloudslang.content.httpclient.consume.HttpResponseConsumer.java
private void safeClose(Closeable closeable) { if (closeable != null) { try {//from www . j a va 2s . c o m closeable.close(); } catch (IOException e) { } } }
From source file:com.alibaba.napoli.metamorphosis.client.consumer.storage.LocalOffsetStorage.java
private void close(final Closeable closeable) { try {/*from w w w. ja v a 2 s .com*/ closeable.close(); } catch (final IOException e) { // ignore } }
From source file:org.apache.hadoop.hive.ql.exec.MapredContext.java
private void closeAll() { for (Closeable eval : udfs) { try {//from w w w. jav a 2 s. co m eval.close(); } catch (IOException e) { logger.info("Hit error while closing udf " + eval); } } udfs.clear(); }
From source file:com.asakusafw.shafu.internal.core.Activator.java
private void closeQuietly(Closeable closeable) { if (closeable == null) { return;/*w w w . ja va 2s . c o m*/ } try { closeable.close(); } catch (IOException e) { e.printStackTrace(); } }
From source file:com.newatlanta.appengine.vfs.provider.GaeFileContent.java
public void close() throws FileSystemException { synchronized (closeableList) { // using array avoids ConcurrentModificationException Closeable[] closeableArray = closeableList.toArray(new Closeable[closeableList.size()]); for (Closeable closeable : closeableArray) { try { closeable.close(); } catch (IOException e) { GaeVFS.log.warning(e.toString()); }/*from www.j a v a2s.c o m*/ } } }
From source file:org.apache.sshd.server.keyprovider.AbstractGeneratorHostKeyProvider.java
private void close(Closeable c) { try {// www . j av a 2s .c o m if (c != null) { c.close(); } } catch (IOException e) { // Ignore } }