OutputZipDirectory

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.tex.IOutputWorkingDirectory

public class OutputZipDirectory implements IOutputWorkingDirectory

Implements the method for getting a file stream to write to when working directory is a ZIP archive.

Constructors

ConstructorDescription
OutputZipDirectory(OutputStream zipStream)Creates new instance.

Methods

MethodDescription
getFile(String fileName, boolean searchSubdirectories)Returns the stream to read from.
getOutputFile(String fileName)Returns the stream to write to.
finish()Finalizes ZIP archive.
close()Disposes the instance.

OutputZipDirectory(OutputStream zipStream)

public OutputZipDirectory(OutputStream zipStream)

Creates new instance.

Parameters:

ParameterTypeDescription
zipStreamjava.io.OutputStreamThe stream to write the archive to.

getFile(String fileName, boolean searchSubdirectories)

public TeXInputStream getFile(String fileName, boolean searchSubdirectories)

Returns the stream to read from.

Parameters:

ParameterTypeDescription
fileNamejava.lang.StringThe file name.
searchSubdirectoriesbooleanIndicates whether to look for a file in subdirectories.

Returns: TeXInputStream - The named TeX input stream.

getOutputFile(String fileName)

public TeXOutputStream getOutputFile(String fileName)

Returns the stream to write to.

Parameters:

ParameterTypeDescription
fileNamejava.lang.StringThe file name.

Returns: TeXOutputStream - The named TeX output stream.

finish()

public void finish()

Finalizes ZIP archive.

close()

public void close()

Disposes the instance.