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.
|
InputStream |
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 InputStream getFile(String fileName, String[] fullName, boolean searchSubdirectories) throws IOException
Returns the stream to read from.
getFile in interface IInputWorkingDirectoryfileName - 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 IInputWorkingDirectoryIOException - when ZIP stream throws it on closing attempt.Copyright © 2021 Aspose. All Rights Reserved.