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 com.jaeksoft.searchlib.streamlimiter.StreamLimiter.java

public abstract class StreamLimiter implements Closeable {

    private final List<InputStream> inputStreamList;
    protected final long limit;
    private CachedStreamInterface outputCache;
    private final List<File> tempFiles;

From source file tachyon.shell.TfsShell.java

/**
 * Class for handling command line inputs.
 */
@NotThreadSafe
public class TfsShell implements Closeable {
    private static final Logger LOG = LoggerFactory.getLogger(Constants.LOGGER_TYPE);

From source file com.streamsets.pipeline.lib.csv.CsvParser.java

public class CsvParser implements Closeable, AutoCloseable {
    private long currentPos;
    private long skipLinesPosCorrection;
    private final CSVParser parser;
    private final CountingReader reader;
    private final int maxObjectLen;

From source file com.agileapes.couteau.http.client.LatentHttpClient.java

/**
 * @author Mohammad Milad Naseri (m.m.naseri@gmail.com)
 * @since 1.0 (14/6/15 AD, 18:30)
 */
public interface LatentHttpClient extends Closeable {

From source file com.jaeksoft.searchlib.autocompletion.AutoCompletionManager.java

public class AutoCompletionManager implements Closeable {

    private final ReadWriteLock rwl = new ReadWriteLock();

    private final Config config;

From source file org.sejda.impl.sambox.component.SetHeaderFooterWriter.java

/**
 * Component adding header or footer to PDF doc, according to the give SetHeaderFooterParameters parameters .
 * 
 * @author Andrea Vacondio
 * 
 */

From source file org.apache.hadoop.hbase.client.example.RefreshHFilesClient.java

/**
 * This client class is for invoking the refresh HFile function deployed on the
 * Region Server side via the RefreshHFilesService.
 */
public class RefreshHFilesClient implements Closeable {
    private static final Log LOG = LogFactory.getLog(RefreshHFilesClient.class);

From source file org.apache.hadoop.crypto.random.OsSecureRandom.java

/**
 * A Random implementation that uses random bytes sourced from the
 * operating system.
 */
@InterfaceAudience.Private
public class OsSecureRandom extends Random implements Closeable, Configurable {

From source file at.ac.tuwien.infosys.jcloudscale.classLoader.simple.RemoteClassProvider.java

public class RemoteClassProvider implements MessageListener, Closeable {
    private Logger log;
    private IMQWrapper mq;

    /**
     * Creates new instance of RemoteClassProvider that satisfies class dependency

From source file org.elasticsearch.client.sniff.Sniffer.java

import java.util.concurrent.ThreadFactory;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicInteger;

/**