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.sonar.java.bytecode.loader.SquidClassLoader.java

/**
 * Class loader, which is able to load classes from a list of JAR files and directories.
 */
public class SquidClassLoader extends ClassLoader implements Closeable {

    private final List<Loader> loaders;

From source file com.blackducksoftware.bdio.io.BdioWriter.java

/**
 * A simple writer for producing a JSON formatted Bill of Materials from a source of node instances.
 *
 * @author jgustie
 */
public class BdioWriter implements Closeable, Flushable {

From source file org.apache.cassandra.io.sstable.ReducingKeyIterator.java

public class ReducingKeyIterator implements Iterator<DecoratedKey>, Closeable {
    private final CollatingIterator ci;
    private final ReducingIterator<DecoratedKey, DecoratedKey> iter;

    public ReducingKeyIterator(Collection<SSTableReader> sstables) {
        ci = FBUtilities.getCollatingIterator();

From source file com.kylinolap.storage.hbase.HBaseClientKVIterator.java

/**
 * @author yangli9
 * 
 */
public class HBaseClientKVIterator
        implements Iterable<Pair<ImmutableBytesWritable, ImmutableBytesWritable>>, Closeable {

From source file com.kylinolap.storage.hbase.HBaseKeyValueIterator.java

/**
 * @author yangli9
 * 
 */
public class HBaseKeyValueIterator
        implements Iterable<Pair<ImmutableBytesWritable, ImmutableBytesWritable>>, Closeable {

From source file org.kiji.mapreduce.KeyValueStoreReaderFactory.java

/**
 * Class that manages the creation of KeyValueStoreReaders associated
 * with a set of bound KeyValueStore name--instance pairs.
 *
 * <p>This also manages a cache of opened readers, which will be returned
 * if available, rather than creating a new store reader for a given named

From source file org.zbus.pool.Pool.java

public abstract class Pool<T> implements Closeable {

    public abstract T borrowObject() throws Exception;

    public abstract void returnObject(T obj);

From source file com.intel.cryptostream.random.OsSecureRandom.java

/**
 * A Random implementation that uses random bytes sourced from the
 * operating system.
 */
public class OsSecureRandom extends Random implements Closeable {
    public static final Log LOG = LogFactory.getLog(OsSecureRandom.class);

From source file org.apache.crunch.io.text.csv.CSVRecordIterator.java

/**
 * An {@code Iterator} for an internally created {@code CSVLineReader}
 */
public class CSVRecordIterator implements Iterator<String>, Closeable {

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

From source file edu.gmu.isa681.ctn.EncodedChannel.java

public final class EncodedChannel implements Closeable {
    private Log log = LogFactory.getLog(EncodedChannel.class);

    private final static Gson gson; // gson is thread safe
    static {
        gson = new GsonBuilder().serializeNulls().generateNonExecutableJson().create();