OutputZipDirectory
Contents
[
Hide
]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
| Constructor | Description |
|---|---|
| OutputZipDirectory(OutputStream zipStream) | Creates new instance. |
Methods
| Method | Description |
|---|---|
| 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:
| Parameter | Type | Description |
|---|---|---|
| zipStream | java.io.OutputStream | The 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:
| 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 TeX input stream.
getOutputFile(String fileName)
public TeXOutputStream getOutputFile(String fileName)
Returns the stream to write to.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| fileName | java.lang.String | The file name. |
Returns: TeXOutputStream - The named TeX output stream.
finish()
public void finish()
Finalizes ZIP archive.
close()
public void close()
Disposes the instance.