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.apache.james.mailets.utils.IMAPMessageReader.java

public class IMAPMessageReader implements Closeable {

    private final IMAPClient imapClient;

    public IMAPMessageReader(String host, int port) throws IOException {
        imapClient = new IMAPClient();

From source file org.sejda.io.BufferedCountingChannelWriter.java

/**
 * Component providing methods to write to a {@link CountingWritableByteChannel}. This implementation is buffered and bytes are flushed to the {@link CountingWritableByteChannel}
 * only when the buffer is full. The buffer size is configurable using the OUTPUT_BUFFER_SIZE_PROPERTY property.
 * 
 * @author Andrea Vacondio
 */

From source file cz.cvut.fel.UserSession.java

/**
 * 
 * @author Ivan Gracia (izanmail@gmail.com)
 * @since 4.3.1
 */
public class UserSession implements Closeable {

From source file edu.harvard.iq.dataverse.DataCiteRESTfullClient.java

/**
 * DataCiteRESTfullClient
 *
 * @author luopc
 *
 */

From source file com.helger.db.jdbc.AbstractConnector.java

/**
 * Abstract implementation of {@link IHasDataSource} based on
 * {@link BasicDataSource} implementation.
 *
 * @author Philip Helger
 */

From source file org.sejda.impl.sambox.component.PdfTextExtractor.java

/**
 * Component responsible for extracting text from an input pdf document.
 * 
 * @author Andrea Vacondio
 * 
 */

From source file com.qwazr.utils.cassandra.CassandraSession.java

public class CassandraSession implements Closeable {

    private static final Logger logger = LoggerFactory.getLogger(CassandraSession.class);

    private final LockUtils.ReadWriteLock rwl = new LockUtils.ReadWriteLock();

From source file com.spotify.docker.client.ProgressStream.java

class ProgressStream implements Closeable {

    private final InputStream stream;
    private final MappingIterator<ProgressMessage> iterator;

    ProgressStream(final InputStream stream) throws IOException {

From source file com.meltmedia.cadmium.core.git.DelayedGitServiceInitializer.java

/**
 * <p>Manages delayed initialization of a common {@link GitService} reference, as well as switching of repositories.</p>
 * 
 * @author John McEntire
 *
 */

From source file org.openhab.binding.lutron.internal.net.TelnetSession.java

/**
 * A single telnet session.
 *
 * @author Allan Tong - Initial contribution
 */
public class TelnetSession implements Closeable {