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 no.antares.clutil.hitman.MessageChannel.java

/** Channel for receiving and sending Message(s).
 * @author tommy skodje
 */
public class MessageChannel implements Closeable {
    private static final Logger logger = Logger.getLogger(MessageChannel.class.getName());
    private final ServerSocket serverSocket;

From source file org.apache.gobblin.util.AutoReturnableObject.java

/**
 * Borrow an object from a {@link GenericObjectPool} and returns it automatically on close. Useful for try with resource.
 */
public class AutoReturnableObject<T> implements Closeable {

    private final T object;

From source file biospectra.utils.IndexUtil.java

/**
 *
 * @author iychoi
 */
public class IndexUtil implements Closeable {
    private static final Log LOG = LogFactory.getLog(IndexUtil.class);

From source file com.yolodata.tbana.hadoop.mapred.util.CSVReader.java

public class CSVReader implements Closeable {

    private final String delimiter = "\"";
    private final String separator = ",";
    private final Reader reader;

From source file ch.sourcepond.maven.plugin.jenkins.it.utils.Simulator.java

/**
 *
 */
public abstract class Simulator implements Closeable {
    public static final Path TARGET = getDefault().getPath(USER_DIR, "target");
    public static final String BASE_PATH = "";

From source file org.openestate.io.core.CsvParser.java

/**
 * A general CSV parser, that is bound to a {@link CsvFormat} and reads CSV data
 * into {@link CsvRecord} objects.
 *
 * @param <Record>
 * the class used for a record, that is parsed from a CSV file

From source file com.spotify.docker.client.EventReader.java

import java.io.IOException;

public class EventReader implements Closeable {

    private static final Logger log = LoggerFactory.getLogger(LogReader.class);
    private final ObjectMapper objectMapper;

From source file com.qwazr.library.cassandra.CassandraConnector.java

public class CassandraConnector extends AbstractPasswordLibrary implements Closeable {

    public final List<String> hosts = null;

    public final String login = null;

From source file org.apache.kylin.rest.adhoc.JdbcConnectionPool.java

public class JdbcConnectionPool implements Closeable {

    private GenericObjectPool internalPool = null;

    public void createPool(JdbcConnectionFactory factory, GenericObjectPool.Config poolConfig) throws IOException {
        if (this.internalPool != null)

From source file org.apache.kylin.query.adhoc.JdbcConnectionPool.java

public class JdbcConnectionPool implements Closeable {

    private GenericObjectPool internalPool = null;

    public void createPool(JdbcConnectionFactory factory, GenericObjectPool.Config poolConfig) throws IOException {
        if (this.internalPool != null)