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.netflix.aegisthus.io.sstable.IndexDatabaseScanner.java

/**
 * This class reads an SSTable index file and returns the offset for each key.
 */
public class IndexDatabaseScanner implements Iterator<IndexDatabaseScanner.OffsetInfo>, Closeable {
    private final CountingInputStream countingInputStream;
    private final DataInputStream input;

From source file com.emc.ecs.sync.service.RowIterator.java

/**
 * Iterates an SQL ResultSet, returning each row as an object mapped by the given RowMapper. Used to reduce the
 * memory footprint of large queries.
 * <p/>
 * Instances will automatically close resources when it is exhausted or if an error occurs. If you do not exhaust
 * the iterator, you *must* manually close it!

From source file org.openedit.util.StreamGobbler.java

/**
 * An object that consumes an {@link InputStream} on a daemon thread to prevent
 * the stream from blocking.
 * 
 * <p>
 * The stream can optionally be output to a logger at an INFO level. The gobbler

From source file org.codehaus.plexus.archiver.tar.PlexusIoTarFileResourceCollection.java

public class PlexusIoTarFileResourceCollection extends AbstractPlexusIoArchiveResourceCollection
        implements Closeable {
    /**
     * The zip file resource collections role hint.
     */
    public static final String ROLE_HINT = "tar";

From source file org.iplantcollaborative.IPlantBorderMessageServer.java

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

From source file net.dv8tion.jda.core.requests.Response.java

public class Response implements Closeable {
    public static final int ERROR_CODE = -1;
    public static final String ERROR_MESSAGE = "ERROR";

    public final int code;
    public final String message;

From source file org.travis4j.rest.SimpleRestClient.java

/**
 * Wraps a HttpClient for easier use.
 */
public class SimpleRestClient implements Closeable {

    private static final Logger LOG = LoggerFactory.getLogger(SimpleRestClient.class);

From source file com.thoughtworks.go.agent.common.ssl.GoAgentServerHttpClient.java

import java.io.IOException;

public class GoAgentServerHttpClient implements Closeable {
    private static final Log LOG = LogFactory.getLog(GoAgentServerHttpClient.class);

    private CloseableHttpClient client;

From source file com.opensearchserver.hadse.index.shard.ShardItem.java

@JsonInclude(Include.NON_EMPTY)
public abstract class ShardItem implements Closeable {

    /**
     * The location of the directory or file
     */

From source file pl.nask.hsn2.connector.CuckooConnection.java

public class CuckooConnection implements Closeable {

    private String url;
    private GetMethod getMethod;
    private InputStream in;