ztex
Class JInputStream

java.lang.Object
  extended by ztex.JInputStream

public class JInputStream
extends java.lang.Object

Creates an input stream from a regular file or a system resource file (i.e. a file from the current jar file).


Constructor Summary
JInputStream()
           
 
Method Summary
static java.io.InputStream getInputStream(java.lang.String fileName)
          Constructs an instance from a giving file name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JInputStream

public JInputStream()
Method Detail

getInputStream

public static java.io.InputStream getInputStream(java.lang.String fileName)
                                          throws java.lang.SecurityException,
                                                 java.io.FileNotFoundException
Constructs an instance from a giving file name.

Parameters:
fileName - The file name.
Throws:
java.lang.SecurityException - Signals a security violation.
java.io.FileNotFoundException - Thrown if the file was not found.