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<InputStream> FileBackedOutputStream.getSupplier()
          Returns a supplier that may be used to retrieve the data buffered by this stream.
static InputSupplier<InputStream> ByteStreams.join(InputSupplier<? extends InputStream>... suppliers)
          Varargs form of ByteStreams.join(Iterable).
static InputSupplier<Reader> CharStreams.join(InputSupplier<? extends Reader>... suppliers)
          Varargs form of CharStreams.join(Iterable).
static InputSupplier<InputStream> ByteStreams.join(Iterable<? extends InputSupplier<? extends InputStream>> suppliers)
          Joins multiple InputStream suppliers into a single supplier.
static InputSupplier<Reader> CharStreams.join(Iterable<? extends InputSupplier<? extends Reader>> suppliers)
          Joins multiple Reader suppliers into a single supplier.
static InputSupplier<ByteArrayInputStream> ByteStreams.newInputStreamSupplier(byte[] b)
          Returns a factory that will supply instances of ByteArrayInputStream that read from the given byte array.
static InputSupplier<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<FileInputStream> Files.newInputStreamSupplier(File file)
          Returns a factory that will supply instances of FileInputStream that read from a file.
static InputSupplier<InputStream> Resources.newInputStreamSupplier(URL url)
          Returns a factory that will supply instances of InputStream that read from the given URL.
static InputSupplier<InputStreamReader> Files.newReaderSupplier(File file, Charset charset)
          Returns a factory that will supply instances of InputStreamReader that read a file using the given character set.
static InputSupplier<InputStreamReader> CharStreams.newReaderSupplier(InputSupplier<? extends InputStream> in, Charset charset)
          Returns a factory that will supply instances of InputStreamReader, using the given InputStream factory and character set.
static InputSupplier<StringReader> CharStreams.newReaderSupplier(String value)
          Returns a factory that will supply instances of StringReader that read a string value.
static InputSupplier<InputStreamReader> Resources.newReaderSupplier(URL url, Charset charset)
          Returns a factory that will supply instances of InputStreamReader that read a URL using the given character set.
static InputSupplier<InputStream> ByteStreams.slice(InputSupplier<? extends 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 InputStream> from, File to)
          Copies to a file all bytes from an InputStream supplied by a factory.
static long ByteStreams.copy(InputSupplier<? extends InputStream> from, 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 InputStream> from, OutputSupplier<? extends 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 Readable & Closeable>
long
CharStreams.copy(InputSupplier<R> from, Appendable to)
          Opens a Readable object from the supplier, copies all characters to the Appendable object, and closes the input.
static
<R extends Readable & Closeable>
void
Files.copy(InputSupplier<R> from, File to, 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 Readable & Closeable,W extends Appendable & 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 InputStream> supplier1, InputSupplier<? extends InputStream> supplier2)
          Returns true if the supplied input streams contain the same bytes.
static boolean ByteStreams.equal(InputSupplier<? extends InputStream> supplier1, InputSupplier<? extends InputStream> supplier2)
          Returns true if the supplied input streams contain the same bytes.
static long ByteStreams.getChecksum(InputSupplier<? extends InputStream> supplier, Checksum checksum)
          Computes and returns the checksum value for a supplied input stream.
static byte[] ByteStreams.getDigest(InputSupplier<? extends InputStream> supplier, MessageDigest md)
          Computes and returns the digest value for a supplied input stream.
static InputSupplier<InputStream> ByteStreams.join(InputSupplier<? extends InputStream>... suppliers)
          Varargs form of ByteStreams.join(Iterable).
static InputSupplier<Reader> CharStreams.join(InputSupplier<? extends Reader>... suppliers)
          Varargs form of CharStreams.join(Iterable).
static long ByteStreams.length(InputSupplier<? extends InputStream> supplier)
          Returns the length of a supplied input stream, in bytes.
static InputSupplier<InputStreamReader> CharStreams.newReaderSupplier(InputSupplier<? extends InputStream> in, 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 InputStream> supplier, ByteProcessor<T> processor)
          Process the bytes of a supplied stream
static
<R extends Readable & Closeable>
String
CharStreams.readFirstLine(InputSupplier<R> supplier)
          Reads the first line from a Readable & Closeable object supplied by a factory.
static
<R extends Readable & Closeable>
List<String>
CharStreams.readLines(InputSupplier<R> supplier)
          Reads all of the lines from a Readable & Closeable object supplied by a factory.
static
<R extends Readable & 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<InputStream> ByteStreams.slice(InputSupplier<? extends 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 InputStream> supplier)
          Returns the data from a InputStream factory as a byte array.
static
<R extends Readable & Closeable>
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<InputStream> ByteStreams.join(Iterable<? extends InputSupplier<? extends InputStream>> suppliers)
          Joins multiple InputStream suppliers into a single supplier.
static InputSupplier<Reader> CharStreams.join(Iterable<? extends InputSupplier<? extends Reader>> suppliers)
          Joins multiple Reader suppliers into a single supplier.
 



Copyright © 2010-2011. All Rights Reserved.