OutputFileTerminal
Contents
[
Hide
]Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.tex.IOutputTerminal, com.aspose.tex.IFileTerminal
public class OutputFileTerminal implements IOutputTerminal, IFileTerminal
Implements a terminal whose output is to be written to a file in some working directory.
Constructors
Constructor | Description |
---|---|
OutputFileTerminal(IOutputWorkingDirectory workingDirectory) | Creates new instance. |
Methods
Method | Description |
---|---|
getFileName() | Gets the file name. |
setFileName(String value) | Sets the file name. |
getWriter() | Gets the writer for the output terminal. |
getStream() | Gets the underlying stream. |
writeFile() | Finalizes the log, e.g., writes it to file. |
OutputFileTerminal(IOutputWorkingDirectory workingDirectory)
public OutputFileTerminal(IOutputWorkingDirectory workingDirectory)
Creates new instance.
Parameters:
Parameter | Type | Description |
---|---|---|
workingDirectory | IOutputWorkingDirectory | The working directory. |
getFileName()
public String getFileName()
Gets the file name.
Returns: java.lang.String - The file name.
setFileName(String value)
public void setFileName(String value)
Sets the file name.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | The file name. |
getWriter()
public BufferedWriter getWriter()
Gets the writer for the output terminal.
Returns: java.io.BufferedWriter - The BufferedWriter class instance.
getStream()
public OutputStream getStream()
Gets the underlying stream.
Returns: java.io.OutputStream - The stream.
writeFile()
public void writeFile()
Finalizes the log, e.g., writes it to file.