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 de.tntinteractive.portalsammler.engine.MapReader.java

public final class MapReader implements Closeable {

    private final BufferedReader reader;

    private MapReader(final BufferedReader reader) {
        this.reader = reader;

From source file org.apache.ambari.servicemonitor.reporting.restapi.RestServer.java

public class RestServer implements Closeable {
    private static final Log LOG = LogFactory.getLog(RestServer.class);
    public static final String OWNER = "owner";

    private HttpServer httpServer;

From source file net.bitnine.agensgraph.graph.property.Jsonb.java

public class Jsonb extends PGobject implements Serializable, Closeable {

    private Object jsonValue;
    private JsonType type;

    public Jsonb() {

From source file com.jaeksoft.searchlib.util.ActiveDirectory.java

/**
 * License Agreement for OpenSearchServer
 * 
 * Copyright (C) 2014 Emmanuel Keller / Jaeksoft
 * 
 * http://www.open-search-server.com

From source file org.apache.hadoop.gateway.shell.BasicResponse.java

public class BasicResponse implements Closeable {

    private HttpResponse response;
    private boolean consumed = false;
    private String string;
    private InputStream stream;

From source file me.haohui.libhdfspp.NativeRpcEngine.java

class NativeRpcEngine implements Closeable {
    private final long handle;

    NativeRpcEngine(NativeIoService ioService, byte[] clientName, String protocol, int version) {
        handle = create(ioService.handle(), clientName, protocol.getBytes(Charsets.UTF_8), version);
    }

From source file edu.usc.goffish.gofs.formats.gml.GMLWriter.java

final class GMLWriter implements Closeable, Flushable {

    private static final int DEFAULT_BUFFER_SIZE = 16384;

    private static final String TABULATOR = "  ";
    private static final String KEY_VALUE_SEPARATOR = " ";

From source file com.dsclab.loader.loader.DBClient.java

/**
 *
 * @author Shiou
 */
public class DBClient implements Closeable {
    private static final Log LOG = LogFactory.getLog(DBClient.class);

From source file me.smoe.hsn.buffer.pool.BufferPool.java

public class BufferPool implements Closeable {

    private GenericObjectPool<ChannelBuffer> objectPool;

    public BufferPool(int corePoolSize, int maxPoolSize, int keepAliveTime, int bufferSize) {
        super();

From source file eu.freme.eservices.publishing.webservice.Run.java

/**
 *
 * @author Pieter Heyvaert <pheyvaer.heyvaert@ugent.be>
 */
@SpringBootApplication
@ComponentScan(basePackages = "eu.freme.eservices.epublishing")