public class OutputZipDirectory extends Object implements IOutputWorkingDirectory
Implements the method for getting a file stream to write to when working directory is a ZIP archive.
Constructor and Description |
---|
OutputZipDirectory(OutputStream zipStream)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Disposes the instance.
|
void |
finish()
Finalizes ZIP archive.
|
TeXInputStream |
getFile(String fileName,
String[] fullName,
boolean searchSubdirectories)
Returns the stream to read from.
|
OutputStream |
getOutputFile(String fileName,
String[] fullName)
Returns the stream to write to.
|
public OutputZipDirectory(OutputStream zipStream)
Creates new instance.
zipStream
- The stream to write the archive to.public TeXInputStream getFile(String fileName, String[] fullName, boolean searchSubdirectories)
Returns the stream to read from.
getFile
in interface IInputWorkingDirectory
fileName
- The file name.fullName
- The full file name.searchSubdirectories
- Indicates whether to look for a file in subdirectories.public OutputStream getOutputFile(String fileName, String[] fullName)
Returns the stream to write to.
getOutputFile
in interface IOutputWorkingDirectory
fileName
- The file name.fullName
- The full file name.fullName
parameter.public void finish()
Finalizes ZIP archive.
public void close() throws IOException
Disposes the instance.
close
in interface IInputWorkingDirectory
IOException
- when ZIP stream throws it on closing attempt.Copyright © 2022 Aspose. All Rights Reserved.