List of usage examples for java.io Closeable interface-usage
From source file org.kiji.examples.phonebook.util.ConsolePrompt.java
/** * A source of input that delivers prompts to the user and reads responses from the console. */ public final class ConsolePrompt implements Closeable { /** The underlying reader instance. */
From source file org.eclipse.aether.transport.http.SharingHttpContext.java
/**
* HTTP context that shares certain attributes among requests to optimize the communication with the server.
*
* @see <a href="http://hc.apache.org/httpcomponents-client-ga/tutorial/html/advanced.html#stateful_conn">Stateful HTTP
* connections</a>
*/
From source file org.hobbit.core.rabbit.SimpleFileSender.java
/**
* A simple class that can be used to send files, i.e., small or large sized
* data with a single name, via RabbitMQ using a queue with the given name. A
* message created by this implementation comprises the following data
* <ol>
* <li>int length of file name</li>
From source file org.apache.hadoop.net.unix.TemporarySocketDirectory.java
/** * Create a temporary directory in which sockets can be created. * When creating a UNIX domain socket, the name * must be fairly short (around 110 bytes on most platforms). */ public class TemporarySocketDirectory implements Closeable {
From source file org.apache.phoenix.cache.HashCache.java
/**
* Encapsulate deserialized hash cache from bytes into Map.
* The Map uses the row key as the key and the row as the value.
*
* @since 0.1
*/
From source file org.commonjava.maven.galley.transport.htcli.Http.java
public interface Http extends Closeable { CloseableHttpClient createClient(HttpLocation location) throws GalleyException; CloseableHttpClient createClient() throws GalleyException;
From source file org.apache.crunch.io.impl.AutoClosingIterator.java
/** * Closes the wrapped {@code Closeable} when {@link #hasNext()} returns false. As long a client loops through to * completion (doesn't abort early due to an exception, short circuit, etc.) resources will be closed automatically. */ public class AutoClosingIterator<T> extends UnmodifiableIterator<T> implements Closeable { private final Iterator<T> iter;
From source file hsyndicate.fs.SyndicateFSReadBlockData.java
/** * * @author iychoi */ public class SyndicateFSReadBlockData implements Closeable {
From source file com.spotify.docker.client.EventStream.java
import java.io.IOException; public class EventStream extends AbstractIterator<Event> implements Closeable { private static final Logger log = LoggerFactory.getLogger(EventStream.class);
From source file com.sharneng.net.portforward.Listener.java
/**
* Listens on the given port to accept connection and forward it to target.
*
* @author Kenneth Xu
*
*/