InputZipDirectory
Contents
[
Hide
]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
Constructor | Description |
---|---|
InputZipDirectory(InputStream zipStream, String basePath) | Creates new instance. |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
zipStream | java.io.InputStream | Returns the stream to read from. |
basePath | java.lang.String | The 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:
Parameter | Type | Description |
---|---|---|
fileName | java.lang.String | The file name. |
searchSubdirectories | boolean | Indicates 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:
Parameter | Type | Description |
---|---|---|
extension | java.lang.String | The 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:
Parameter | Type | Description |
---|---|---|
extension | java.lang.String | The file extension. |
path | java.lang.String | The path inside the directory. |
Returns: java.lang.String[] - The array of file names.
close()
public void close()
Disposes the instance.