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 org.kiji.mapreduce.kvstore.KeyValueStoreReaderFactory.java

/**
 * Class that manages the creation of KeyValueStoreReaders associated
 * with a set of bound KeyValueStore name--instance pairs.
 *
 * <p>This also manages a cache of opened readers, which will be returned
 * if available, rather than creating a new store reader for a given named

From source file ja.lingo.readers.sdictionary.SDictionaryDriver.java

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

    private static final String UTF_8 = "UTF-8";

    private MappedByteBufferWrapper wrapper;

From source file org.springframework.cloud.commons.util.InetUtils.java

/**
 * @author Spencer Gibb
 */
public class InetUtils implements Closeable {

    // TODO: maybe shutdown the thread pool if it isn't being used?

From source file org.apache.cassandra.tools.AbstractJmxClient.java

public abstract class AbstractJmxClient implements Closeable {
    private static final Options options = new Options();
    protected static final int DEFAULT_JMX_PORT = 7199;
    protected static final String DEFAULT_HOST = "localhost";

    protected final String host;

From source file org.springframework.hateoas.client.Server.java

/**
 * Helper class for integration tests.
 * 
 * @author Oliver Gierke
 */
public class Server implements Closeable {

From source file org.apache.trafficcontrol.client.trafficops.TOSession.java

@AutoValue
public abstract class TOSession implements Closeable {
    private static final Logger LOG = LoggerFactory.getLogger(TOSession.class);

    private static final String URL_FORMAT_STR = "/%s/%s/%s";

From source file de.tudarmstadt.ukp.integration.alignment.xml.AlignmentXmlWriter.java

/**
 * 
 * Writer for alignment xml format
 *
 */
public class AlignmentXmlWriter implements Closeable {

From source file edu.cornell.med.icb.goby.compression.MessageChunksReader.java

/**
 * Read from a stream produced with {@link MessageChunksWriter}.
 *
 * @author Fabien Campagne
 *         Date: Apr 30, 2009
 *         Time: 5:06:55 PM

From source file org.jnetstream.capture.PacketInputStream.java

/**
 * <p>
 * A <code>PacketInputStream</code> deserializes <code>Packet</code> objects
 * into <code>DeserializedPacket</code> objects previously written using a
 * <code>PacketOutputStream</code>. <code>DeserializedPacket</code>
 * interface is a subclass of <code>CapturePacket</code> which adds several

From source file dk.ilios.spanner.internal.ConsoleOutput.java

/**
 * Prints a brief summary of the results collected.  It does not contain the measurements themselves
 * as that is the responsibility of the webapp.
 */
final class ConsoleOutput implements Closeable {
    private final StdOut stdout;