TeXMemoryOutputDirectory

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.pdf.tex.ITeXOutputDirectory

public class TeXMemoryOutputDirectory implements ITeXOutputDirectory

Implements fetching an output stream from memory. You can use it, for example, when you don’t want the accompanying output (like a log file) to be written to disk but you’d like to read it afterwards from memory.

Constructors

ConstructorDescription
TeXMemoryOutputDirectory()Creates new instance.

Methods

MethodDescription
getFile(String fileName, String[] fullName)Returns the stream to read from.
getFile(String fileName, String[] fullName, boolean searchSubdirectories)Returns the stream to read from.
getOutputFile(String fileName, String[] fullName)Returns the stream to write to.
close()Disposes the instance.

TeXMemoryOutputDirectory()

public TeXMemoryOutputDirectory()

Creates new instance.

getFile(String fileName, String[] fullName)

public final InputStream getFile(String fileName, String[] fullName)

Returns the stream to read from.

Without to look for a file in subdirectories.

Parameters:

ParameterTypeDescription
fileNamejava.lang.StringThe file name.
fullNamejava.lang.String[]The full file name. In this implementation has no effect.

Returns: java.io.InputStream - The stream.

getFile(String fileName, String[] fullName, boolean searchSubdirectories)

public InputStream getFile(String fileName, String[] fullName, boolean searchSubdirectories)

Returns the stream to read from.

Parameters:

ParameterTypeDescription
fileNamejava.lang.StringThe file name.
fullNamejava.lang.String[]The full file name.
searchSubdirectoriesbooleanIndicates whether to look for a file in subdirectories. In this implementation has no effect.

Returns: java.io.InputStream - The stream.

getOutputFile(String fileName, String[] fullName)

public OutputStream getOutputFile(String fileName, String[] fullName)

Returns the stream to write to.

Parameters:

ParameterTypeDescription
fileNamejava.lang.StringString value The file name.
fullNamejava.lang.String[]String value in array The full file name.

Returns: java.io.OutputStream - OutputStream instance

close()

public void close()

Disposes the instance.