Uses of Interface
com.google.common.io.InputSupplier

Packages that use InputSupplier
com.google.common.io This package contains utility methods and classes for working with Java I/O, for example input streams, output streams, readers, writers, and files. 
 

Uses of InputSupplier in com.google.common.io
 

Methods in com.google.common.io that return InputSupplier
 InputSupplier<java.io.InputStream> FileBackedOutputStream.getSupplier()
          Returns a supplier that may be used to retrieve the data buffered by this stream.
static InputSupplier<java.io.InputStream> ByteStreams.join(InputSupplier<? extends java.io.InputStream>... suppliers)
          Varargs form of ByteStreams.join(Iterable).
static InputSupplier<java.io.Reader> CharStreams.join(InputSupplier<? extends java.io.Reader>... suppliers)
          Varargs form of CharStreams.join(Iterable).
static InputSupplier<java.io.InputStream> ByteStreams.join(java.lang.Iterable<? extends InputSupplier<? extends java.io.InputStream>> suppliers)
          Joins multiple InputStream suppliers into a single supplier.
static InputSupplier<java.io.Reader> CharStreams.join(java.lang.Iterable<? extends InputSupplier<? extends java.io.Reader>> suppliers)
          Joins multiple Reader suppliers into a single supplier.
static InputSupplier<java.io.ByteArrayInputStream> ByteStreams.newInputStreamSupplier(byte[] b)
          Returns a factory that will supply instances of ByteArrayInputStream that read from the given byte array.
static InputSupplier<java.io.ByteArrayInputStream> ByteStreams.newInputStreamSupplier(byte[] b, int off, int len)
          Returns a factory that will supply instances of ByteArrayInputStream that read from the given byte array.
static InputSupplier<java.io.FileInputStream> Files.newInputStreamSupplier(java.io.File file)
          Returns a factory that will supply instances of FileInputStream that read from a file.
static InputSupplier<java.io.InputStream> Resources.newInputStreamSupplier(java.net.URL url)
          Returns a factory that will supply instances of InputStream that read from the given URL.
static InputSupplier<java.io.InputStreamReader> Files.newReaderSupplier(java.io.File file, java.nio.charset.Charset charset)
          Returns a factory that will supply instances of InputStreamReader that read a file using the given character set.
static InputSupplier<java.io.InputStreamReader> CharStreams.newReaderSupplier(InputSupplier<? extends java.io.InputStream> in, java.nio.charset.Charset charset)
          Returns a factory that will supply instances of InputStreamReader, using the given InputStream factory and character set.
static InputSupplier<java.io.StringReader> CharStreams.newReaderSupplier(java.lang.String value)
          Returns a factory that will supply instances of StringReader that read a string value.
static InputSupplier<java.io.InputStreamReader> Resources.newReaderSupplier(java.net.URL url, java.nio.charset.Charset charset)
          Returns a factory that will supply instances of InputStreamReader that read a URL using the given character set.
static InputSupplier<java.io.InputStream> ByteStreams.slice(InputSupplier<? extends java.io.InputStream> supplier, long offset, long length)
          Returns an InputSupplier that returns input streams from the an underlying supplier, where each stream starts at the given offset and is limited to the specified number of bytes.
 

Methods in com.google.common.io with parameters of type InputSupplier
static void Files.copy(InputSupplier<? extends java.io.InputStream> from, java.io.File to)
          Copies to a file all bytes from an InputStream supplied by a factory.
static long ByteStreams.copy(InputSupplier<? extends java.io.InputStream> from, java.io.OutputStream to)
          Opens an input stream from the supplier, copies all bytes from the input to the output, and closes the input stream.
static long ByteStreams.copy(InputSupplier<? extends java.io.InputStream> from, OutputSupplier<? extends java.io.OutputStream> to)
          Opens input and output streams from the given suppliers, copies all bytes from the input to the output, and closes the streams.
static
<R extends java.lang.Readable & java.io.Closeable>
long
CharStreams.copy(InputSupplier<R> from, java.lang.Appendable to)
          Opens a Readable object from the supplier, copies all characters to the Appendable object, and closes the input.
static
<R extends java.lang.Readable & java.io.Closeable>
void
Files.copy(InputSupplier<R> from, java.io.File to, java.nio.charset.Charset charset)
          Copies to a file all characters from a Readable and Closeable object supplied by a factory, using the given character set.
static
<R extends java.lang.Readable & java.io.Closeable,W extends java.lang.Appendable & java.io.Closeable>
long
CharStreams.copy(InputSupplier<R> from, OutputSupplier<W> to)
          Opens Readable and Appendable objects from the given factories, copies all characters between the two, and closes them.
static boolean ByteStreams.equal(InputSupplier<? extends java.io.InputStream> supplier1, InputSupplier<? extends java.io.InputStream> supplier2)
          Returns true if the supplied input streams contain the same bytes.
static boolean ByteStreams.equal(InputSupplier<? extends java.io.InputStream> supplier1, InputSupplier<? extends java.io.InputStream> supplier2)
          Returns true if the supplied input streams contain the same bytes.
static long ByteStreams.getChecksum(InputSupplier<? extends java.io.InputStream> supplier, java.util.zip.Checksum checksum)
          Computes and returns the checksum value for a supplied input stream.
static byte[] ByteStreams.getDigest(InputSupplier<? extends java.io.InputStream> supplier, java.security.MessageDigest md)
          Computes and returns the digest value for a supplied input stream.
static InputSupplier<java.io.InputStream> ByteStreams.join(InputSupplier<? extends java.io.InputStream>... suppliers)
          Varargs form of ByteStreams.join(Iterable).
static InputSupplier<java.io.Reader> CharStreams.join(InputSupplier<? extends java.io.Reader>... suppliers)
          Varargs form of CharStreams.join(Iterable).
static long ByteStreams.length(InputSupplier<? extends java.io.InputStream> supplier)
          Returns the length of a supplied input stream, in bytes.
static InputSupplier<java.io.InputStreamReader> CharStreams.newReaderSupplier(InputSupplier<? extends java.io.InputStream> in, java.nio.charset.Charset charset)
          Returns a factory that will supply instances of InputStreamReader, using the given InputStream factory and character set.
static
<T> T
ByteStreams.readBytes(InputSupplier<? extends java.io.InputStream> supplier, ByteProcessor<T> processor)
          Process the bytes of a supplied stream
static
<R extends java.lang.Readable & java.io.Closeable>
java.lang.String
CharStreams.readFirstLine(InputSupplier<R> supplier)
          Reads the first line from a Readable & Closeable object supplied by a factory.
static
<R extends java.lang.Readable & java.io.Closeable>
java.util.List<java.lang.String>
CharStreams.readLines(InputSupplier<R> supplier)
          Reads all of the lines from a Readable & Closeable object supplied by a factory.
static
<R extends java.lang.Readable & java.io.Closeable,T>
T
CharStreams.readLines(InputSupplier<R> supplier, LineProcessor<T> callback)
          Streams lines from a Readable and Closeable object supplied by a factory, stopping when our callback returns false, or we have read all of the lines.
static InputSupplier<java.io.InputStream> ByteStreams.slice(InputSupplier<? extends java.io.InputStream> supplier, long offset, long length)
          Returns an InputSupplier that returns input streams from the an underlying supplier, where each stream starts at the given offset and is limited to the specified number of bytes.
static byte[] ByteStreams.toByteArray(InputSupplier<? extends java.io.InputStream> supplier)
          Returns the data from a InputStream factory as a byte array.
static
<R extends java.lang.Readable & java.io.Closeable>
java.lang.String
CharStreams.toString(InputSupplier<R> supplier)
          Returns the characters from a Readable & Closeable object supplied by a factory as a String.
 

Method parameters in com.google.common.io with type arguments of type InputSupplier
static InputSupplier<java.io.InputStream> ByteStreams.join(java.lang.Iterable<? extends InputSupplier<? extends java.io.InputStream>> suppliers)
          Joins multiple InputStream suppliers into a single supplier.
static InputSupplier<java.io.Reader> CharStreams.join(java.lang.Iterable<? extends InputSupplier<? extends java.io.Reader>> suppliers)
          Joins multiple Reader suppliers into a single supplier.