Back to project page webimageloader.
The source code is released under:
Apache License
If you think the Android project webimageloader listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.webimageloader.util; // w w w . j av a 2s. c o m import java.io.IOException; import java.io.InputStream; /** * A factory of {@link InputStream}s * * @author Alexander Blom <alexanderblom.se> */ public interface InputSupplier { /** * Get the length of the supplied {@link InputStream} * * @return the length * @throws IOException if opening the stream or file failed */ long getLength() throws IOException; /** * Open a new {@link InputStream}, you should be sure to close any previously * opened streams before * * @return a fresh stream which you are responsible for closing * @throws IOException if opening the stream failed */ InputStream getInput() throws IOException; }