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.iternine.jeppetto.testsupport.MongoDatabaseProvider.java

public class MongoDatabaseProvider implements DatabaseProvider, Closeable {

    //-------------------------------------------------------------
    // Constants
    //-------------------------------------------------------------

From source file org.apache.parquet.cli.json.AvroJsonReader.java

public class AvroJsonReader<E> implements Iterator<E>, Iterable<E>, Closeable {

    private final GenericData model;
    private final Schema schema;
    private final InputStream stream;
    private Iterator<E> iterator;

From source file org.apache.flink.runtime.state.ClosableRegistry.java

/**
 * This class allows to register instances of {@link Closeable}, which are all closed if this registry is closed.
 * <p>
 * Registering to an already closed registry will throw an exception and close the provided {@link Closeable}
 * <p>
 * All methods in this class are thread-safe.

From source file com.microsoft.rest.ServiceClient.java

/**
 * ServiceClient is the abstraction for accessing REST operations and their payload data types.
 *
 * @param <T> type of the ServiceClient
 */
public abstract class ServiceClient<T> implements Closeable {

From source file org.apache.nifi.processors.standard.util.SFTPConnection.java

public final class SFTPConnection implements Closeable {

    private static final Log logger = LogFactory.getLog(SFTPConnection.class);
    private final Session session;
    private final ChannelSftp sftp;

From source file stroom.util.zip.StroomZipFile.java

public class StroomZipFile implements Closeable {
    public static final String SINGLE_ENTRY_ZIP_BASE_NAME = "001";

    public static final StroomZipEntry SINGLE_DATA_ENTRY = new StroomZipEntry(null, SINGLE_ENTRY_ZIP_BASE_NAME,
            StroomZipFileType.Data);
    public static final StroomZipEntry SINGLE_META_ENTRY = new StroomZipEntry(null, SINGLE_ENTRY_ZIP_BASE_NAME,

From source file com.mgmtp.perfload.perfalyzer.util.ChannelManager.java

/**
 * Utility class for managing channels. A channel manager is always based on a destination directory
 * and uses a {@link FileNamingStrategy} in order to create files it opens channels for.
 *
 * @author rnaegele
 */

From source file org.apache.hadoop.fs.redfish.RedfishDataOutputStream.java

class RedfishDataOutputStream extends OutputStream implements Syncable, Closeable, Flushable {
    private long m_ofe;

    static {
        try {
            System.loadLibrary("hfishc");

From source file discovery.ExampleServer.java

/**
 * This shows a very simplified method of registering an instance with the service discovery. Each individual
 * instance in your distributed set of applications would create an instance of something similar to ExampleServer,
 * start it when the application comes up and close it when the application shuts down.
 */
public class ExampleServer implements Closeable {

From source file org.apache.camel.dataformat.csv.CsvIterator.java

/**
 */
public class CsvIterator<T> implements Iterator<T>, Closeable {

    private final CSVParser parser;
    private final Reader reader;