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 guru.nidi.ramltester.httpcomponents.RamlHttpClient.java

/**
 *
 */
public class RamlHttpClient implements HttpClient, Closeable {
    private static final String RAML_TESTED = "raml.tested";
    private static final BasicHttpResponse DUMMY_RESPONSE = new BasicHttpResponse(HttpVersion.HTTP_1_1,

From source file Networking.Networking.java

/**
 * <p> Enables local network communication with moderator.
 * <p>The communication protocol is described in documentation
 * of {@code CommonLib} (see {@see edu.cvut.vorobvla.bap.BapMessages}).
 * <p> This class is implemented as a singleton.
 * @author Vladimir Vorobyev (vorobvla)

From source file alluxio.shell.AlluxioShell.java

/**
 * Class for handling command line inputs.
 */
@NotThreadSafe
public class AlluxioShell implements Closeable {
    private static final Logger LOG = LoggerFactory.getLogger(Constants.LOGGER_TYPE);

From source file com.adaptris.util.text.mime.ReadonlyFileDataSource.java

class ReadonlyFileDataSource implements DataSource, Closeable, MimeConstants, MimeHeaders {

    private transient File wrappedFile;
    private transient List<SharedFileInputStream> children;
    private transient InternetHeaders headers;
    private transient String contentType = null;

From source file com.addthis.hydra.data.query.DiskBackedMap.java

public class DiskBackedMap<T extends DiskBackedMap.DiskObject> implements Map<String, T>, Closeable {

    private static final Logger log = LoggerFactory.getLogger(DiskBackedMap.class);
    //private final PageDB<CodableDiskObject> db;
    // By all rights this should be the above, but generics and inner
    // classes do not seem to play nice

From source file org.apache.hadoop.hbase.chaos.util.Monkeys.java

/**
 * This class can be used to control chaos monkeys life cycle.
 */
public class Monkeys implements Closeable {
    private static final Log LOG = LogFactory.getLog(Monkeys.class);

From source file de.fhg.iais.cortex.services.ingest.ZipStreamAipBinaries.java

public class ZipStreamAipBinaries implements IAipBinaries, Closeable {

    private final ZipInputStream zipInputStream;
    private boolean isRead = false;

    public ZipStreamAipBinaries(InputStream inputStreamInZipFormat) {

From source file org.commonjava.aprox.test.fixture.core.CoreServerFixture.java

public class CoreServerFixture implements Closeable {

    private static final int MAX_PORTGEN_TRIES = 16;

    private final Logger logger = LoggerFactory.getLogger(getClass());

From source file org.duniter.core.client.service.elasticsearch.CurrencyRegistryRemoteServiceImpl.java

/**
 * Created by Benoit on 06/05/2015.
 */
public class CurrencyRegistryRemoteServiceImpl extends BaseRemoteServiceImpl
        implements CurrencyRegistryRemoteService, InitializingBean, Closeable {
    private static final Logger log = LoggerFactory.getLogger(CurrencyRegistryRemoteServiceImpl.class);

From source file org.kaaproject.kaa.server.common.nosql.cassandra.dao.client.CassandraClient.java

@Component
public class CassandraClient implements Closeable {

    private static final String COMMA = ",";
    private static final String COLON = ":";