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 playmidi.task.MidiPlayTask.java

/**
 * ??????????
 *
 * @author normal
 */
public final class MidiPlayTask implements Runnable, AutoCloseable {

From source file com.collective.celos.database.StateDatabaseConnection.java

/**
 * Stores all state needed by the scheduler.
 */
public interface StateDatabaseConnection extends AutoCloseable {

    /**

From source file org.lazulite.boot.autoconfigure.core.progress.ProgressReporter.java

/**
 * Created by junfu on 2016/5/6.
 */
public class ProgressReporter implements IProgressReporter, AutoCloseable {
    private Socket m_socket;
    private PrintWriter m_out;

From source file kr.debop4j.core.pool.AbstractPool.java

/**
 * Apache common pool? Generic Pool (Jedis ? JedisPool   ?)
 *
 * @author ? ( sunghyouk.bae@gmail.com )
 * @since 13. 4. 8.  12:41
 */

From source file com.wrmsr.wava.util.Indenter.java

public final class Indenter implements AutoCloseable {
    @FunctionalInterface
    public interface Target {
        void write(String string) throws IOException;
    }

From source file com.cisco.cta.taxii.adapter.TcpServer.java

class TcpServer extends Thread implements AutoCloseable {

    private static int port = 9000;
    private static final Charset CHARSET = Charset.forName("UTF-8");

    private final ServerSocket serverSocket;

From source file com.splicemachine.tutorials.tsdbanalytics.dataobjects.ImpressionLogSerializer.java

/**
 * Serializer Class for ImpressionLog, used with Kafka Queue.
 * The ImpressionLog is encoded as Json String by producer.
 * The Consumer converts the JsonString to ImpressionLog object.
 *
 * @author Jyotsna Ramineni

From source file org.trellisldp.http.impl.TrellisGraph.java

/**
 * @author acoburn
 */
public class TrellisGraph implements AutoCloseable {

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

From source file net.sourceforge.fullsync.fs.Site.java

public interface Site extends AutoCloseable {
    File getRoot();

    // open ?
    void flush() throws IOException;

From source file com.joyent.manta.client.MantaObjectInputStream.java

/**
 * {@link InputStream} implementation that wraps the input stream provided from {@link MantaClient} and implements
 * {@link MantaObject} so that you can obtain metadata information.
 *
 * @author <a href="https://github.com/dekobon">Elijah Zupancic</a>
 */