InputZipDirectory

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.tex.IInputWorkingDirectory

public class InputZipDirectory implements IInputWorkingDirectory

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

Constructors

ConstructorDescription
InputZipDirectory(InputStream zipStream, String basePath)Creates new instance.

Methods

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

InputZipDirectory(InputStream zipStream, String basePath)

public InputZipDirectory(InputStream zipStream, String basePath)

Creates new instance.

Parameters:

ParameterTypeDescription
zipStreamjava.io.InputStreamThe stream to write the archive to.
basePathjava.lang.StringThe base path inside the ZIP archive.

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. The full file name via fullName parameter.

close()

public void close()

Disposes the instance.