Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.webimageloader.util;
 
A factory of java.io.InputStreams

Author(s):
Alexander Blom <alexanderblom.se>
public interface InputSupplier {
    
Get the length of the supplied java.io.InputStream

Returns:
the length
Throws:
java.io.IOException if opening the stream or file failed
    long getLength() throws IOException;

    
Open a new java.io.InputStream, you should be sure to close any previously opened streams before

Returns:
a fresh stream which you are responsible for closing
Throws:
java.io.IOException if opening the stream failed
    InputStream getInput() throws IOException;
New to GrepCode? Check out our FAQ X