Uses of Interface
com.google.common.io.InputSupplier
-
Packages that use InputSupplier Package Description 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
Classes in com.google.common.io that implement InputSupplier Modifier and Type Class Description class
ByteSource
A readable source of bytes, such as a file.class
CharSource
A readable source of characters, such as a text file.Methods in com.google.common.io that return InputSupplier Modifier and Type Method Description static InputSupplier<java.io.InputStream>
ByteStreams. join(InputSupplier<? extends java.io.InputStream>... suppliers)
Deprecated.UseByteSource.concat(ByteSource[])
instead.static InputSupplier<java.io.InputStream>
ByteStreams. join(java.lang.Iterable<? extends InputSupplier<? extends java.io.InputStream>> suppliers)
Deprecated.UseByteSource.concat(Iterable)
instead.static InputSupplier<java.io.ByteArrayInputStream>
ByteStreams. newInputStreamSupplier(byte[] b)
Deprecated.UseByteSource.wrap(byte[])
instead.static InputSupplier<java.io.ByteArrayInputStream>
ByteStreams. newInputStreamSupplier(byte[] b, int off, int len)
Deprecated.UseByteSource.wrap(b).slice(off, len)
instead.static InputSupplier<java.io.FileInputStream>
Files. newInputStreamSupplier(java.io.File file)
Deprecated.static InputSupplier<java.io.InputStreamReader>
CharStreams. newReaderSupplier(InputSupplier<? extends java.io.InputStream> in, java.nio.charset.Charset charset)
Deprecated.UseByteSource.asCharSource(Charset)
instead.static InputSupplier<java.io.StringReader>
CharStreams. newReaderSupplier(java.lang.String value)
Deprecated.UseCharSource.wrap(CharSequence)
instead.static InputSupplier<java.io.InputStreamReader>
Files. newReaderSupplier(java.io.File file, java.nio.charset.Charset charset)
Deprecated.static InputSupplier<java.io.InputStream>
ByteStreams. slice(InputSupplier<? extends java.io.InputStream> supplier, long offset, long length)
Deprecated.UseByteSource#slice(int, int)
instead.Methods in com.google.common.io with parameters of type InputSupplier Modifier and Type Method Description static ByteSource
ByteStreams. asByteSource(InputSupplier<? extends java.io.InputStream> supplier)
Deprecated.Convert allInputSupplier<? extends InputStream>
implementations to extendByteSource
or provide a method for viewing the object as aByteSource
.static CharSource
CharStreams. asCharSource(InputSupplier<? extends java.lang.Readable> supplier)
Deprecated.Convert allInputSupplier<? extends Readable>
implementations to extendCharSource
or provide a method for viewing the object as aCharSource
.static InputSupplier<java.io.InputStream>
ByteStreams. join(InputSupplier<? extends java.io.InputStream>... suppliers)
Deprecated.UseByteSource.concat(ByteSource[])
instead.static InputSupplier<java.io.InputStreamReader>
CharStreams. newReaderSupplier(InputSupplier<? extends java.io.InputStream> in, java.nio.charset.Charset charset)
Deprecated.UseByteSource.asCharSource(Charset)
instead.static <R extends java.lang.Readable & java.io.Closeable>
java.lang.StringCharStreams. readFirstLine(InputSupplier<R> supplier)
Deprecated.UseCharSource.readFirstLine()
instead.static <R extends java.lang.Readable & java.io.Closeable>
java.util.List<java.lang.String>CharStreams. readLines(InputSupplier<R> supplier)
Deprecated.UseCharSource.readLines()
instead, but note that it returns anImmutableList
.static InputSupplier<java.io.InputStream>
ByteStreams. slice(InputSupplier<? extends java.io.InputStream> supplier, long offset, long length)
Deprecated.UseByteSource#slice(int, int)
instead.Method parameters in com.google.common.io with type arguments of type InputSupplier Modifier and Type Method Description static InputSupplier<java.io.InputStream>
ByteStreams. join(java.lang.Iterable<? extends InputSupplier<? extends java.io.InputStream>> suppliers)
Deprecated.UseByteSource.concat(Iterable)
instead.
-