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 net.grinder.AgentUpdateHandler.java

/**
 * Agent Update Message Handler.
 *
 * @author JunHo Yoon
 * @since 3.1
 */

From source file net.netheos.pcsapi.request.CResponse.java

/**
 * Represents a response returned by an HTTP client.
 */
public class CResponse implements Closeable {

    private final int status;

From source file lucee.commons.io.res.util.ResourceClassLoader.java

/**
 * Classloader that load classes from resources
 */
public final class ResourceClassLoader extends URLClassLoader implements Closeable {

    private List<Resource> resources = new ArrayList<Resource>();

From source file com.twitter.distributedlog.service.stream.limiter.DynamicRequestLimiter.java

/**
 * Dynamically rebuild a rate limiter when the supplied dynamic config changes. Subclasses
 * implement build() to build the limiter. DynamicRequestLimiter must be closed to deregister
 * the config listener.
 */
public abstract class DynamicRequestLimiter<Request> implements RequestLimiter<Request>, Closeable {

From source file org.apache.activemq.artemis.tests.integration.rest.util.RestAMQConnection.java

public class RestAMQConnection implements Closeable {

    private CloseableHttpClient httpClient = HttpClients.createDefault();

    private String targetUri;
    private List<RestMessageContext> contexts = new ArrayList<>();

From source file com.jaeksoft.searchlib.config.Mailer.java

public class Mailer implements Closeable {

    private final Email email;
    private PrintWriter textPrintWriter;
    private PrintWriter htmlPrintWriter;
    private StringWriter textStringWriter;

From source file nya.miku.wishmaster.chans.dvach.DvachBoardsListReader.java

public class DvachBoardsListReader implements Closeable {
    private static final List<String> SFW_BOARDS = Arrays.asList(new String[] { "au", "bo", "bg", "c", "ew", "fi",
            "fl", "mu", "n", "ne", "ra", "s", "sn", "t", "tr", "vg", "a" });
    private final Reader _in;
    private StringBuilder readBuffer = new StringBuilder();
    private String currentCategory;

From source file com.nttec.everychan.chans.dvach.DvachBoardsListReader.java

public class DvachBoardsListReader implements Closeable {
    private static final List<String> SFW_BOARDS = Arrays.asList(new String[] { "au", "bo", "bg", "c", "ew", "fi",
            "fl", "mu", "n", "ne", "ra", "s", "sn", "t", "tr", "vg", "a" });
    private final Reader _in;
    private StringBuilder readBuffer = new StringBuilder();
    private String currentCategory;

From source file org.bdval.io.compound.CompoundFileWriter.java

/**
 * Write a compound file. Only one thread should be writing to the compound
 * file at a time. NOT THREAD SAFE!
 * TODO: * Add a semaphore and make it thread safe?
 * TODO: * Utility to copy a set of files to a compound file, and extract a set of files
 * TODO: from a compound file

From source file org.kiji.checkin.CheckinClient.java

/**
 * <p>Client for sending check-in messages to the BentoBox upgrade server. Use the static method
 * {@link #create(org.apache.http.client.HttpClient, java.net.URI)} to obtain an instance that
 * can communicate with a particular upgrade server. Then, use the method
 * {@link #checkin(UpgradeCheckin)} to send a check-in message to the upgrade server and receive
 * a response.</p>