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.marketcetera.core.CloseableLock.java

/**
 * Provides an auto-closeable implementation of {@link ReadWriteLock}.
 *
 * @author <a href="mailto:colin@marketcetera.com">Colin DuPlantis</a>
 * @version $Id$
 * @since $Release$

From source file foam.dao.index.PersistedIndex.java

public class PersistedIndex extends ProxyIndex implements Closeable {
    protected final File file_;
    protected FileInputStream fis_;
    protected FileOutputStream fos_;

    protected ByteArrayOutputStream bos_ = new ByteArrayOutputStream();

From source file cz.pichlik.goodsentiment.common.CSVWriter.java

public class CSVWriter implements Closeable {
    private final CSVPrinter csvPrinter;
    private final File temporaryResultFile;

    public CSVWriter(String... header) {
        CSVFormat format = CSVFormats.format(header);

From source file cz.pichlik.goodsentiment.common.CSVReader.java

public class CSVReader implements Closeable {
    private CSVParser csvParser;

    public CSVReader(InputStream input) {
        super();
        try {

From source file org.brickhouse.Database.java

public interface Database extends Closeable {
    /**
     * Convenience method for getTable(String, boolean, boolean), defaulting the "setDis" value to true.
     * 
     * @param name
     *            table name

From source file org.mule.transport.amqp.CloseableChannelWrapper.java

public class CloseableChannelWrapper implements Closeable {
    private final Channel channel;

    public CloseableChannelWrapper(final Channel channel) {
        Validate.notNull(channel, "channel can't be null");
        this.channel = channel;

From source file org.mule.transport.amqp.internal.transaction.CloseableChannelWrapper.java

public class CloseableChannelWrapper implements Closeable {
    private ChannelHandler channelHandler = new ChannelHandler();

    private final Channel channel;

    public CloseableChannelWrapper(final Channel channel) {

From source file com.granita.contacticloudsync.log.ExternalFileLogger.java

public class ExternalFileLogger extends CustomLogger implements Closeable {

    public ExternalFileLogger(Context context, String fileName, boolean verbose) throws IOException {
        this.verbose = verbose;

        File dir = getDirectory(context);

From source file com.microsoft.azure.keyvault.core.IKey.java

/**
 * Interface for representing cryptographic keys with the Microsoft Azure Key
 * Vault libraries.
 */
public interface IKey extends Closeable {

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

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