public class InputZipDirectory extends Object implements IInputWorkingDirectory
Implements the method for getting a file stream to write to when working directory is a ZIP archive.
Constructor and Description |
---|
InputZipDirectory(InputStream zipStream,
String basePath)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Disposes the instance.
|
TeXInputStream |
getFile(String fileName,
String[] fullName,
boolean searchSubdirectories)
Returns the stream to read from.
|
public InputZipDirectory(InputStream zipStream, String basePath)
Creates new instance.
zipStream
- The stream to write the archive to.basePath
- The base path inside the ZIP archive.public TeXInputStream getFile(String fileName, String[] fullName, boolean searchSubdirectories) throws IOException
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.fullName
parameter.IOException
- when the file can't be retrieved.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.