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, String[] fullName, boolean searchSubdirectories)Returns the stream to read from.
getOutputFile(String fileName, String[] fullName)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, String[] fullName, boolean searchSubdirectories)

public TeXInputStream 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.

Returns: TeXInputStream - The stream.

getOutputFile(String fileName, String[] fullName)

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

Returns the stream to write to.

Parameters:

ParameterTypeDescription
fileNamejava.lang.StringThe file name.
fullNamejava.lang.String[]The full file name.

Returns: java.io.OutputStream - The stream. The full file name via fullName parameter.

finish()

public void finish()

Finalizes ZIP archive.

close()

public void close()

Disposes the instance.