Example usage for java.io Closeable interface-usage

List of usage examples for java.io Closeable interface-usage

Introduction

In this page you can find the example usage for java.io Closeable interface-usage.

Usage

From source file org.aksw.dice.eaglet.uri.impl.FileBasedCachingUriCheckerManager.java

/**
 * <p>
 * This class is an extension of the {@link UriCheckerManagerImpl} that caches
 * the results using a persistent file-based cache. Note that the cache stores
 * the time stamp at which a URI is added to the cache. Cache entries have a
 * maximal lifetime. If it is exceeded, the entries might be deleted from the

From source file org.elasticsearch.hadoop.rest.NetworkClient.java

public class NetworkClient implements StatsAware, Closeable {
    private static Log log = LogFactory.getLog(NetworkClient.class);

    private final Settings settings;
    private final List<String> nodes;
    private final Map<String, Throwable> failedNodes = new LinkedHashMap<String, Throwable>();

From source file org.apache.hadoop.hdfs.tools.offlineImageViewer.WebImageViewer.java

/**
 * WebImageViewer loads a fsimage and exposes read-only WebHDFS API for its
 * namespace.
 */
public class WebImageViewer implements Closeable {
    public static final Log LOG = LogFactory.getLog(WebImageViewer.class);

From source file com.epam.reportportal.apache.http.impl.execchain.ConnectionHolder.java

/**
 * Internal connection holder.
 *
 * @since 4.3
 */
@ThreadSafe

From source file org.codice.ddf.configuration.migration.ExportMigrationManagerImpl.java

/**
 * The export migration manager generates an exported file and manages the export migration
 * operation.
 */
public class ExportMigrationManagerImpl implements Closeable {

From source file com.lithium.flow.jetty.JettyClient.java

/**
 * @author Matt Ayres
 */
@WebSocket
public class JettyClient extends BasePoolableObjectFactory<Session> implements Closeable {
    private static final Logger log = Logs.getLogger();

From source file org.callimachusproject.io.CarInputStream.java

public class CarInputStream implements Closeable {
    private static final int RDFS_PEEK_SIZE = 1024 * 1024;
    private static final Pattern FILE_NAME = Pattern.compile("[^/]+\\.[a-zA-Z]+$");
    private final ZipArchiveInputStream zipStream;
    private final FileTypeMap mimetypes;
    private ZipArchiveEntry entry;

From source file org.sejda.impl.itext.component.PdfStamperHandler.java

/**
 * Component responsible for handling operations related to a {@link PdfStamper} instance.
 * 
 * @author Andrea Vacondio
 * 
 */

From source file com.diozero.imu.drivers.invensense.MPU9150Device.java

public class MPU9150Device implements Closeable, ImuInterface {
    private static final int DEFAULT_FIFO_RATE = 20;
    private static final String DEVICE_NAME = "MPU-9150";

    private MPU9150Driver mpu;
    private MPU9150DMPDriver dmp;

From source file org.apache.james.mailets.utils.SMTPMessageSender.java

public class SMTPMessageSender implements Closeable {

    public static SMTPMessageSender noAuthentication(String ip, int port, String senderDomain) throws IOException {
        SMTPClient smtpClient = new SMTPClient();
        smtpClient.connect(ip, port);
        return new SMTPMessageSender(smtpClient, senderDomain);