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.eluder.logback.ext.jackson.JsonWriter.java

public class JsonWriter implements Closeable {

    private final JsonGenerator generator;

    public JsonWriter(OutputStream os, Charset charset, ObjectMapper mapper) throws IOException {
        generator = mapper.getFactory().createGenerator(new OutputStreamWriter(os, charset))

From source file org.archive.modules.fetcher.AbstractCookieStorage.java

/**
 * @author pjack
 *
 */
public abstract class AbstractCookieStorage implements CookieStorage, Lifecycle, // InitializingBean, 
        Closeable {

From source file com.jitlogic.zico.core.PersistentSymbolRegistry.java

public class PersistentSymbolRegistry extends SymbolRegistry implements Closeable {

    private final static Logger log = LoggerFactory.getLogger(PersistentSymbolRegistry.class);

    private File path;
    private OutputStream os;

From source file org.kiji.schema.Kiji.java

/**
 * <p>Kiji instance class that contains configuration and table
 * information.  Multiple instances of Kiji can be installed onto a
 * single HBase cluster.  This class represents a single one of those
 * instances.</p>
 *

From source file org.opensingular.internal.lib.commons.util.TempFileProvider.java

/**
 * Apoia na criao de arquivos ou diretriso temporarios garantindo a excluso dos mesmo ou na chmada do mtodo
 * close() ou no encerramento da execuo do cdigo informado. O objetivo  no deixar lixo
 * para trs. H duas formas de uso:
 * <p>
 * <p>Mais recomendada, por ser mais garantido que no ficarao arquivos para trs:</p>

From source file org.apache.jackrabbit.oak.plugins.segment.file.ReversedLinesFileReader.java

/**
 * Reads lines in a file reversely (similar to a BufferedReader, but starting at
 * the last line). Useful for e.g. searching in log files.
 *
 * FIXME: this is a copy of org.apache.commons.io.input.ReversedLinesFileReader
 * with a fix for IO-471. Replace again once commons-io has released a fixed version.

From source file com.qwazr.compiler.JavaCompiler.java

public class JavaCompiler implements Closeable {

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

    private final int javaSourcePrefixSize;
    private final File javaSourceDirectory;

From source file com.google.caliper.runner.ConsoleOutput.java

/**
 * Prints a brief summary of the results collected.  It does not contain the measurements themselves
 * as that is the responsibility of the webapp.
 */
final class ConsoleOutput implements Closeable {
    private final PrintWriter stdout;

From source file fabrice.CSVPrinter.java

/**
 * Prints values in a CSV format.
 *
 * Taken from <b>org.apache.commons.csv.CSVPrinter</b>
 *
 *    <groupId>org.apache.commons</groupId>

From source file com.sc.l45.weblogviewer.reader.ReversedLinesFileReaderLineSeparator.java

/**
 * Reads lines in a file reversely (similar to a BufferedReader, but starting at
 * the last line). Useful for e.g. searching in log files.
 *
 * @since 2.2
 */