Package com.google.common.io
Interface InputSupplier<T>
-
- All Known Implementing Classes:
ByteSource,CharSource
@Deprecated public interface InputSupplier<T>Deprecated.ForInputSupplier<? extends InputStream>, useByteSourceinstead. ForInputSupplier<? extends Reader>, useCharSource. Implementations ofInputSupplierthat don't fall into one of those categories do not benefit from any of the methods incommon.ioand should use a different interface. This interface is scheduled for removal in June 2015.A factory for readable streams of bytes or characters.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description TgetInput()Deprecated.Returns an object that encapsulates a readable resource.
-
-
-
Method Detail
-
getInput
T getInput() throws java.io.IOException
Deprecated.Returns an object that encapsulates a readable resource.Like
Iterable.iterator(), this method may be called repeatedly to get independent channels to the same underlying resource.Where the channel maintains a position within the resource, moving that cursor within one channel should not affect the starting position of channels returned by other calls.
- Throws:
java.io.IOException
-
-