org.wamblee.io
Interface InputResource

All Known Implementing Classes:
ClassPathResource, FileResource, StreamResource

public interface InputResource

Represents a resource from which information can be read.

Author:
Erik Brakkee

Method Summary
 java.io.InputStream getInputStream()
          Gets the input stream to the resource.
 

Method Detail

getInputStream

java.io.InputStream getInputStream()
                                   throws java.io.IOException
Gets the input stream to the resource. The obtained input stream must be closed once reading has finished.

Returns:
Input stream to the resource, never null.
Throws:
java.io.IOException - in case the resource cannot be found.


Copyright © 2010. All Rights Reserved.