misim.util
Interface RobustReaderIF
- All Known Implementing Classes:
- MiSimDE
- public interface RobustReaderIF
This interface provides methods that will provide access to
files and other resources, regardless of whether the reader
is implemented as an applet or application.
Method Summary |
java.awt.Image |
getImage(java.lang.String filename)
Load the an image from the given filename |
java.io.InputStreamReader |
getStreamReader(java.lang.String filename)
Create an input stream reader from the given filename |
getStreamReader
public java.io.InputStreamReader getStreamReader(java.lang.String filename)
throws java.io.FileNotFoundException,
java.io.IOException
- Create an input stream reader from the given filename
- Parameters:
filename
- The file name to create a reader for- Returns:
- An Input Stream Reader for this file
- Throws:
java.io.FileNotFoundException
- If the file is not foundjava.io.IOException
- If an IO Exception occurs whilst reading the file
getImage
public java.awt.Image getImage(java.lang.String filename)
- Load the an image from the given filename
- Parameters:
filename
- The image filename to load- Returns:
- The required image