InputZipDirectory

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.tex.IInputWorkingDirectory, com.aspose.tex.IFileCollector

public class InputZipDirectory implements IInputWorkingDirectory, IFileCollector

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, boolean searchSubdirectories)Returns the stream to read from.
getFileNamesByExtension(String extension)Returns the array of file names by an extension.
getFileNamesByExtension(String extension, String path)Returns the array of file names by an extension.
close()Disposes the instance.

InputZipDirectory(InputStream zipStream, String basePath)

public InputZipDirectory(InputStream zipStream, String basePath)

Creates new instance.

Parameters:

ParameterTypeDescription
zipStreamjava.io.InputStreamReturns the stream to read from.
basePathjava.lang.StringThe base path inside the ZIP archive.

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 stream.

getFileNamesByExtension(String extension)

public String[] getFileNamesByExtension(String extension)

Returns the array of file names by an extension.

Parameters:

ParameterTypeDescription
extensionjava.lang.StringThe file extension.

Returns: java.lang.String[] - The array of file names.

getFileNamesByExtension(String extension, String path)

public String[] getFileNamesByExtension(String extension, String path)

Returns the array of file names by an extension.

Parameters:

ParameterTypeDescription
extensionjava.lang.StringThe file extension.
pathjava.lang.StringThe path inside the directory.

Returns: java.lang.String[] - The array of file names.

close()

public void close()

Disposes the instance.