Example usage for java.lang AutoCloseable interface-usage

List of usage examples for java.lang AutoCloseable interface-usage

Introduction

In this page you can find the example usage for java.lang AutoCloseable interface-usage.

Usage

From source file edu.dfci.cccb.mev.deseq.domain.simple.FileBackedDESeq.java

/**
 * @author levk
 * 
 */
@ToString
public class FileBackedDESeq extends AbstractDESeq implements AutoCloseable {

From source file com.skynetcomputing.skynetserver.persistence.FileManager.java

/**
 * @author jordy
 */
public class FileManager implements AutoCloseable {

    /// Constants.

From source file com.atomicleopard.thundr.ftp.FtpSession.java

public class FtpSession implements AutoCloseable {
    protected FTPClient preparedClient;

    public FtpSession(FTPClient preparedClient) {
        this.preparedClient = preparedClient;
    }

From source file io.seventyone.mongoutils.MongoServiceImplementation.java

public class MongoServiceImplementation implements AutoCloseable, MongoService {

    private final MongoDatabase db;
    private final MongoClient mongoClient;

    public MongoServiceImplementation(String host, int port, String dbName, String user, String password) {

From source file com.complexible.clearbit.Clearbit.java

/**
 * <p></p>
 *
 * @author  Michael Grove
 * @since   0.1
 * @version 0.1

From source file org.apache.hive.beeline.QFileBeeLineClient.java

/**
 * QFile test client using BeeLine. It can be used to submit a list of command strings, or a QFile.
 */
public class QFileBeeLineClient implements AutoCloseable {
    private BeeLine beeLine;
    private PrintStream beelineOutputStream;

From source file com.google.cloud.public_datasets.nexrad2.GcsUntar.java

/**
 * Provides the ability to read a tar file from Google Cloud Storage. This class
 * creates some temporary directories that it cleans up when closed, so do not
 * use the provided data outside the scope of this object:
 * 
 * <pre>

From source file record.wave.WaveWriter.java

public class WaveWriter implements AutoCloseable {
    private static final Pattern FILENAME_PATTERN = Pattern.compile("(.*_)(\\d+)(\\.wav)");
    public static final long MAX_WAVE_SIZE = 2l * (long) Integer.MAX_VALUE;

    private AudioFormat mAudioFormat;
    private int mFileRolloverCounter = 1;

From source file org.opendaylight.vpnservice.dhcpservice.DhcpManager.java

public class DhcpManager implements AutoCloseable {

    private static final Logger logger = LoggerFactory.getLogger(DhcpManager.class);
    private final DataBroker broker;
    IMdsalApiManager mdsalUtil;

From source file com.pinterest.jbender.executors.http.FiberApacheHttpClientRequestExecutor.java

/**
 * Executor base class offering a Comsat-based implementation of an HTTP request executor.
 */
public class FiberApacheHttpClientRequestExecutor<X extends HttpRequestBase>
        implements RequestExecutor<X, CloseableHttpResponse>, AutoCloseable {
    // Inspired by https://github.com/puniverse/photon/blob/master/src/main/java/co/paralleluniverse/photon/Photon.java