OutputFileTerminal

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

ConstructorDescription
OutputFileTerminal(IOutputWorkingDirectory workingDirectory)Creates new instance.

Methods

MethodDescription
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:

ParameterTypeDescription
workingDirectoryIOutputWorkingDirectoryThe 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:

ParameterTypeDescription
valuejava.lang.StringThe 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.