Skip navigation links
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
public OutputFile(java.lang.String path, java.lang.String fileName) throws java.io.IOException
OutputFileinstance.
path- the absolute path to the directory where the file should be created
fileName- the name of the file to be created
java.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 reason
public java.lang.String getFileName()
public void writeln(java.lang.String str) throws java.io.IOException
str- the string to be written to the file
java.io.IOException- if an I/O error occurs
public void write(java.lang.String str) throws java.io.IOException
writein class
java.io.Writer
str- the string to be written to the file
java.io.IOException- if an I/O error occurs
public void close() throws java.io.IOException
closein interface
java.io.Closeable
closein class
java.io.OutputStreamWriter
java.io.IOException
public boolean isWriteable()
Skip navigation links