|
Oracle Fusion Applications Java API Reference for Oracle Enterprise Scheduler Service 11g Release 1 (11.1.1.5) E20742-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.Reader java.io.BufferedReader oracle.as.scheduler.cp.file.InputFile
public class InputFile
This class represents a file provided as input to a request. An instance of this class can be accessed by calling the getInputFile() method with a token (specified by the developer of the program) on the ProcessHelper class.
For text-based files, methods on BufferedReader can be used to read the input. For other files, the getStream() method should be used.
Created: Tue Mar 13 08:46:46 2007
Field Summary |
---|
Fields inherited from class java.io.Reader |
---|
lock |
Constructor Summary | |
---|---|
InputFile(java.lang.String path,
java.lang.String fileName)
Create a handle to a file fileName in the directory/path represented by path. |
|
InputFile(java.lang.String path,
java.lang.String fileName,
java.lang.String encoding)
Create a handle to a file fileName in the directory/path represented by path. |
Method Summary | |
---|---|
void |
close()
Close this input file. |
java.io.InputStream |
getStream()
Get a handle to the input stream. |
Methods inherited from class java.io.BufferedReader |
---|
mark, markSupported, read, read, readLine, ready, reset, skip |
Methods inherited from class java.io.Reader |
---|
read, read |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InputFile(java.lang.String path, java.lang.String fileName) throws java.io.FileNotFoundException
path
- directory where this file is locatedfileName
- name of the file
java.io.FileNotFoundException
public InputFile(java.lang.String path, java.lang.String fileName, java.lang.String encoding) throws java.io.UnsupportedEncodingException, java.io.FileNotFoundException
path
- directory where this file is locatedfileName
- name of the fileencoding
- string representing the encoding in which the file
should be read
java.io.UnsupportedEncodingException
java.io.FileNotFoundException
Method Detail |
---|
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.BufferedReader
java.io.IOException
- if an error occurs while closing the filepublic java.io.InputStream getStream() throws java.io.IOException, java.io.FileNotFoundException
InputStream
value
java.io.IOException
- if an error occurs
java.io.FileNotFoundException
- if an error occurs
|
Oracle Fusion Applications Java API Reference for Oracle Enterprise Scheduler Service 11g Release 1 (11.1.1.5) E20742-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |