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 IndexService.IndexMergeIFormatWriter.java

@SuppressWarnings("deprecation")
public class IndexMergeIFormatWriter<K, V> implements java.io.Closeable, RecordWriter<IndexKey, IndexValue> {
    public static final Log LOG = LogFactory.getLog(IndexMergeIFormatWriter.class);

    JobConf conf;
    Progressable progress;

From source file biospectra.taxdb.TaxonDB.java

/**
 *
 * @author iychoi
 */
public class TaxonDB implements Closeable {

From source file org.dice_research.topicmodeling.io.xml.XmlWritingDocumentConsumer.java

public class XmlWritingDocumentConsumer extends AbstractDocumentXmlWriter implements DocumentConsumer, Closeable {

    private static final Logger LOGGER = LoggerFactory.getLogger(XmlWritingDocumentConsumer.class);

    protected Writer fout;

From source file biospectra.classify.server.ClassifierServer.java

/**
 *
 * @author iychoi
 */
public class ClassifierServer implements Closeable {

From source file IndexService.IndexIFormatOutputWriter.java

@SuppressWarnings("deprecation")
public class IndexIFormatOutputWriter<K, V> implements java.io.Closeable, RecordWriter<IndexKey, IndexValue> {
    public static final Log LOG = LogFactory.getLog(IndexIFormatOutputWriter.class);

    JobConf conf;
    Progressable progress;

From source file com.anjlab.logback.hipchat.HipChatRoom.java

public class HipChatRoom implements Closeable {
    private final CloseableHttpClient closeableHttpClient;
    private final Gson gson;

    private final String roomUri;
    private final Header authorizationHeader;

From source file com.netflix.curator.framework.recipes.locks.SemaphoreClient.java

class SemaphoreClient implements Callable<Void>, ConnectionStateListener, Closeable {
    private final CuratorFramework client;
    private final String semaphorePath;
    private final Callable<Void> operation;

    private volatile boolean shouldRun;

From source file org.dbpedia.spotlight.lucene.index.BaseIndexer.java

/**
 * Implementation of a FeatureVectorBuilder that uses a Lucene index to store features.
 * Should not be instantiated.
 * TODO PABLO remove this class, create an occurrence context indexer and a wikipagecontext indexer?
 *
 * @author pablomendes

From source file com.lightboxtechnologies.spectrum.MRCoffeeClient.java

public class MRCoffeeClient implements Closeable {

    public static class Result {
        public final String stdout;
        public final String stderr;

From source file com.jaeksoft.searchlib.script.AbstractScriptRunner.java

public abstract class AbstractScriptRunner implements Closeable {

    private final boolean externalContext;
    private final ScriptCommandContext context;
    private int errorCount;
    private int ignoredCount;