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 record.wave.MonoWaveReader.java

public class MonoWaveReader implements AutoCloseable {
    private final static Logger mLog = LoggerFactory.getLogger(MonoWaveReader.class);

    private static final Pattern FILENAME_PATTERN = Pattern.compile("(.*_)(\\d+)(\\.wav)");

    private Path mPath;

From source file org.languagetool.dev.bigdata.CommonCrawlToNgram3.java

/**
 * Prepare indexing the CommonCrawl-based data from http://data.statmt.org/ngrams/
 * to ngrams - result will still need to be aggregated and then indexed
 * with {@link AggregatedNgramToLucene}.
 * @since 3.2
 */

From source file io.mapzone.controller.vm.http.HttpResponseForwarder.java

/**
 * An HTTP reverse proxy/gateway servlet. It is designed to be extended for
 * customization if desired. Most of the work is handled by <a
 * href="http://hc.apache.org/httpcomponents-client-ga/">Apache HttpClient</a>.
 * <p/>
 * There are alternatives to a servlet based proxy such as Apache mod_proxy if that

From source file com.apm4all.tracy.TracyAsyncHttpClientPublisher.java

public class TracyAsyncHttpClientPublisher implements TracyPublisher, AutoCloseable {
    static final String TRACY_CONTENT_TYPE = MediaType.APPLICATION_JSON + ";charset=" + StandardCharsets.UTF_8;
    public static boolean WAIT_FOR_RESPONSE = true;
    public static boolean DONT_WAIT_FOR_RESPONSE = false;
    private String uri;
    private boolean waitForResponse;

From source file ai.grakn.migration.csv.CSVMigrator.java

/**
 * The CSV migrator will migrate all of the data in a CSV file into Grakn Graql var patters, to be
 * imported into a graph as the user sees fit.
 * @author alexandraorth
 */
public class CSVMigrator implements AutoCloseable {

From source file org.kududb.client.MiniKuduCluster.java

/**
 * Utility class to start and manipulate Kudu clusters. Relies on being IN the Kudu source code with
 * both the kudu-master and kudu-tserver binaries already compiled. {@link BaseKuduTest} should be
 * extended instead of directly using this class in almost all cases.
 */
public class MiniKuduCluster implements AutoCloseable {

From source file com.codealot.url2text.Response.java

/**
 * Class to encapsulate the result of fetching and converting a url's content.
 * Consists of a bunch of properties plus asFormat(), toString() and toJson()
 * methods.
 * 
 * <p>

From source file uk.ac.susx.tag.classificationframework.datastructures.CacheManager.java

/**
 * Caching procedure:
 *
 *  CacheManager cm = new CacheManager(hostname, port);
 *
 *  FeatureExtractionPipeline pipeline = PipelineFactory.createCMUPipeline(true , true);

From source file org.apache.bookkeeper.statelib.impl.rocksdb.checkpoint.RocksCheckpointer.java

/**
 * Rocksdb Checkpointer that manages checkpoints.
 */
@Slf4j
public class RocksCheckpointer implements AutoCloseable {

From source file io.github.dsheirer.record.wave.MonoWaveReader.java

public class MonoWaveReader implements AutoCloseable {
    private final static Logger mLog = LoggerFactory.getLogger(MonoWaveReader.class);

    private static final Pattern FILENAME_PATTERN = Pattern.compile("(.*_)(\\d+)(\\.wav)");

    private Path mPath;