|
Oracle Fusion Middleware Java API Reference for Oracle Enterprise Scheduler Service 11g Release 1 (11.1.1.6.2) E26229-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.io.Writer
java.io.OutputStreamWriter
java.io.FileWriter
oracle.as.scheduler.cp.file.OutputFile
public class OutputFile
This class is the entry point for generating output files for requests. It can be used write output generated by the request. These files can then viewed by the user or sent to post-processing for further transformation or activities like printing, fax or email. A request may generate more than one output file.
Users can obtain access to the default output file by using the getOutputFile() method on the ProcessHelper class. Additional output files can be accessed by using the getOutputFile(String name) on the same class. Instantiating this class directly is forbidden and can cause undefined behavior.
Created: Tue Mar 6 17:27:21 2007
Field Summary |
---|
Fields inherited from class java.io.Writer |
---|
lock |
Constructor Summary | |
---|---|
OutputFile(java.lang.String path, java.lang.String fileName) Creates a new OutputFile instance. |
Method Summary | |
---|---|
void |
close() |
java.lang.String |
getFileName() Get the name of the file (without the path) that this object represents. |
boolean |
isWriteable() Check if the log file can be written to. |
void |
write(java.lang.String str) Write a not-null string to the output file |
void |
writeln(java.lang.String str) Write a string to the output file and also add the platform-dependent new line character/string. |
Methods inherited from class java.io.OutputStreamWriter |
---|
flush, getEncoding, write, write, write |
Methods inherited from class java.io.Writer |
---|
append, append, append, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OutputFile(java.lang.String path, java.lang.String fileName) throws java.io.IOException
OutputFile
instance.
path
- the absolute path to the directory where the file should be createdfileName
- the name of the file to be createdjava.io.IOException
- if the named file exists but is a directory rather than a regular file, does not exist but cannot be created, or cannot be opened for any other reasonMethod Detail |
---|
public java.lang.String getFileName()
public void writeln(java.lang.String str) throws java.io.IOException
str
- the string to be written to the filejava.io.IOException
- if an I/O error occurspublic void write(java.lang.String str) throws java.io.IOException
write
in class java.io.Writer
str
- the string to be written to the filejava.io.IOException
- if an I/O error occurspublic void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.OutputStreamWriter
java.io.IOException
public boolean isWriteable()
|
Oracle Fusion Middleware Java API Reference for Oracle Enterprise Scheduler Service 11g Release 1 (11.1.1.6.2) E26229-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |