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.stratio.cassandra.lucene.schema.Schema.java

/**
 * The user-defined mapping from Cassandra columns to Lucene documents.
 *
 * @author Andres de la Pena {@literal <adelapena@stratio.com>}
 */
public class Schema implements Closeable {

From source file org.archive.io.CrawlerJournal.java

/**
 * Utility class for a crawler journal/log that is compressed and 
 * rotates by serial number at checkpoints. 
 * 
 * @author gojomo
 */

From source file com.magnet.tools.tests.CukeCommandExecutor.java

/**
 * Executor for commands within cucumber test
 */
class CukeCommandExecutor extends DefaultExecutor implements Closeable, Flushable {

    private final String command;

From source file com.techcavern.pircbotz.IdentServer.java

/**
 * A simple IdentServer (also know as "The Identification Protocol"). An ident
 * server provides a means to determine the identity of a user of a particular
 * TCP connection.
 * <p>
 * Most IRC servers attempt to contact the ident server on connecting hosts in

From source file org.apache.tez.dag.history.logging.proto.DagManifesFileScanner.java

/**
 * Helper class to scan all the dag manifest files to get manifest entries. This class is
 * not thread safe.
 */
public class DagManifesFileScanner implements Closeable {
    private static final Logger LOG = LoggerFactory.getLogger(DagManifesFileScanner.class);

From source file org.largecollections.FastCacheMap.java

/**
 * FastHashMap is an implementation of java.util.Map. FastHashMap provides a heuristic value for size which is compensated by its 
 * faster performance. If you want a true implementation of Map which returns the most accurate value for size() use CacheMap or 
 * LargeCacheMap
 * 
 * It differs from CacheMap in that it provides a lsize() function which is longer version of size(). In this respect it deviates from a

From source file org.apache.hadoop.hbase.HBaseCluster.java

/**
 * This class defines methods that can help with managing HBase clusters
 * from unit tests and system tests. There are 3 types of cluster deployments:
 * <ul>
 * <li><b>MiniHBaseCluster:</b> each server is run in the same JVM in separate threads,
 * used by unit tests</li>

From source file org.apache.camel.dataformat.tarfile.TarIterator.java

/**
 * The Iterator which can go through the TarArchiveInputStream according to TarArchiveEntry
 * Based on ZipIterator from camel-zipfile component
 */
public class TarIterator implements Iterator<Message>, Closeable {
    static final Logger LOGGER = LoggerFactory.getLogger(TarIterator.class);

From source file org.elasticsearch.test.rest.client.RestClient.java

/**
 * REST client used to test the elasticsearch REST layer
 * Holds the {@link RestSpec} used to translate api calls into REST calls
 */
public class RestClient implements Closeable {

From source file hsyndicate.fs.AHSyndicateFileSystemBase.java

public abstract class AHSyndicateFileSystemBase implements Closeable {

    private static final Log LOG = LogFactory.getLog(AHSyndicateFileSystemBase.class);

    protected static final String FS_ROOT_PATH_STRING = "/";
    protected static final SyndicateFSPath FS_ROOT_PATH = new SyndicateFSPath(FS_ROOT_PATH_STRING);