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