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 com.github.horrorho.inflatabledonkey.util.LZFSEExtInputStream.java

/**
 *
 * @author Ayesha
 */
public class LZFSEExtInputStream extends InputStream implements Closeable {

From source file net.metanotion.json.JsonWriter.java

/** This class implements a handler that writes JSON encoded values into a stream.
   @param <T> The type parameter for the handler. This class always returns null from finish().
*/
public final class JsonWriter<T> implements Handler<T>, Closeable {
    private static final String COMMA = ",";
    private static final String LBRACE = "{";

From source file com.mdsh.test.media.encoding.process.AbstractProcess.java

/**
 * @author mdsh
 *
 */
public abstract class AbstractProcess implements Closeable {
    /**

From source file org.carrot2.core.Controller.java

/**
 * A controller implementing the life cycle described in {@link IProcessingComponent}. Use
 * {@link ControllerFactory} to obtain controllers with different characteristics, e.g.
 * with or without pooling of {@link IProcessingComponent}, with or without caching of the
 * processing results. If further customizations are needed, you can provide your own
 * {@link IProcessingComponentManager} implementation.

From source file com.bodeme.easycloud.syncadapter.DavSyncAdapter.java

public abstract class DavSyncAdapter extends AbstractThreadedSyncAdapter implements Closeable {
    private final static String TAG = "davdroid.DavSyncAdapter";

    @Getter
    private static String androidID;

From source file com.graphhopper.reader.OSMInputFile.java

/**
 * A readable OSM file.
 * <p>
 * @author Nop
 */
public class OSMInputFile implements Sink, Closeable {

From source file org.largecollections.FastIntIntCacheMap.java

/**
 * CacheMap is a true implementation of Map. Unlike FastHashMap which operates
 * about 30% faster on put() and remove() CacheMap returns the correct value for
 * size() function. OffHeapMap provides a heuristic value for size which is
 * compensated by its faster performance.
 */

From source file org.fcrepo.client.FcrepoResponse.java

/**
 * Represents a response from a fedora repository using a {@link FcrepoClient}.
 * <p>
 * This class implements {@link Closeable}. Suggested usage is to create the {@code FcrepoResponse} within a
 * try-with-resources block, insuring that any resources held by the response are freed automatically.
 * </p>

From source file org.apache.http.HC4.impl.execchain.ConnectionHolder.java

/**
 * Internal connection holder.
 *
 * @since 4.3
 */
@ThreadSafe

From source file edu.cornell.med.icb.goby.readers.FastXReader.java

/**
 * A reader for <a href="http://en.wikipedia.org/wiki/FASTA_format">FASTA</a>
 * or <a href="http://en.wikipedia.org/wiki/FASTQ_format">FASTQ</a> files.
 * This reuses the same {@link edu.cornell.med.icb.goby.readers.FastXEntry} over and
 * over for reading the file, so don't directly store it. If you need to store the
 * resultant FastXEntry object, use the {@link edu.cornell.med.icb.goby.readers.FastXEntry#clone()}