com.hp.hpl.mesa.rdf.jena.common.regression
Class ResourceReader
java.lang.Object
|
+--java.io.Reader
|
+--java.io.InputStreamReader
|
+--com.hp.hpl.mesa.rdf.jena.common.regression.ResourceReader
- public class ResourceReader
- extends java.io.InputStreamReader
read a data file stored on the class path.
To use this, ensure your data is on the class path (e.g. in the
program jar, or in a separate data.jar), and give a relative path
name to the data.
Not intended for an applet environment.
- Version:
- Release='$Name: $' Revision='$Revision: 1.3 $' Date='$Date: 2001/07/04 18:40:34 $'
- Author:
- jjc
|
Constructor Summary |
ResourceReader(java.lang.String resource)
Creates new ResourceReader |
| Methods inherited from class java.io.InputStreamReader |
close, getEncoding, read, read, ready |
| Methods inherited from class java.io.Reader |
mark, markSupported, read, reset, skip |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceReader
public ResourceReader(java.lang.String resource)
throws java.io.IOException
- Creates new ResourceReader
- Parameters:
resource - The filename of the data file relative to the Java classpath.
- Throws:
java.lang.SecurityException - If cannot access the classloader, e.g. in applet.
java.lang.IllegalArgumentException - If file not found.
java.io.IOException
Copyright © 2001 Hewlett-Packard. All Rights Reserved.