ewe.io
Class FileInputStream

java.lang.Object
  extended byewe.io.InputStream
      extended byewe.io.FileInputStream
All Implemented Interfaces:
Streamable

public class FileInputStream
extends InputStream

This is a read only input stream from a file.


Field Summary
 
Fields inherited from class ewe.io.InputStream
atEOF, closed, in, rs, stream
 
Constructor Summary
FileInputStream(File file)
          Create the FileInputStream from a specified file.
FileInputStream(String name)
          Create the FileInputStream for a specified file name.
 
Methods inherited from class ewe.io.InputStream
available, close, getFastStream, getName, mark, markSupported, read, read, read, readSingleByteFromMultiByteRead, reset, shutdown, skip, toReadableStream, toStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, toString
 

Constructor Detail

FileInputStream

public FileInputStream(File file)
                throws FileNotFoundException
Create the FileInputStream from a specified file.

Parameters:
file - The File to open.
Throws:
FileNotFoundException - if the file does not exist or could not be open for reading.

FileInputStream

public FileInputStream(String name)
                throws FileNotFoundException
Create the FileInputStream for a specified file name.

Parameters:
name - The name of the file.
Throws:
FileNotFoundException - if the file does not exist or could not be open for reading.