| java.lang.Object net.sf.jasperreports.engine.util.JRLoader
JRLoader | public class JRLoader (Code) | | author: Teodor Danciu (teodord@users.sourceforge.net) version: $Id: JRLoader.java 1507 2006-11-27 15:12:17Z teodord $ |
getFileInputStream | public static InputStream getFileInputStream(String filename) throws JRException(Code) | | Tries to open a file for reading.
Parameters: filename - the file name an input stream for the file or null if the file was not found throws: JRException - |
getLocationInputStream | public static InputStream getLocationInputStream(String location) throws JRException(Code) | | Tries to open an input stream for a location.
The method tries to interpret the location as a file name, a resource name or
an URL. If any of these succeed, an input stream is created and returned.
Parameters: location - the location an input stream if the location is an existing file name, a resource name onthe classpath or an URL or null otherwise. throws: JRException - |
getResourceInputStream | public static InputStream getResourceInputStream(String resource)(Code) | | Tries to open an input stream for a resource.
Parameters: resource - the resource name an input stream for the resource or null if the resource was not found |
getURLInputStream | public static InputStream getURLInputStream(String spec) throws JRException(Code) | | Tries to open an input stream for an URL.
Parameters: spec - the string to parse as an URL an input stream for the URL or null if spec is not a valid URL throws: JRException - |
|
|