feud.testgame.util
Class SimpleStream

java.lang.Object
  extended byfeud.testgame.util.SimpleStream

public class SimpleStream
extends java.lang.Object

A simple wrapper for InputStreams from the class path.


Constructor Summary
SimpleStream(java.lang.String file)
          Create a new stream based on a file name.
 
Method Summary
 void close()
          Closes the stream.
 java.io.InputStream getStream()
          Returns the actual stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleStream

public SimpleStream(java.lang.String file)
Create a new stream based on a file name. The file has to be present in the class path.

Parameters:
file - the file name.
Method Detail

getStream

public java.io.InputStream getStream()
Returns the actual stream.

Returns:
InputStream the stream

close

public void close()
           throws java.io.IOException
Closes the stream.

Throws:
java.io.IOException