public class ZipFilterWriter extends Object implements IFilterWriter
IFilterWriter interface for filters that handle formats made of
a ZIP package with embedded extractable documents, such as IDML or
OpenOffice.org files (ODT, ODS, ODP, etc.)| Constructor and Description |
|---|
ZipFilterWriter(EncoderManager encoderManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels the current process.
|
void |
close()
Closes the output.
|
protected StartDocument |
convertToStartDocument(StartSubDocument res) |
protected IFilterWriter |
createSubDocumentFilterWriter(StartSubDocument res) |
protected ISkeletonWriter |
createSubDocumentSkeletonWriter(StartSubDocument res) |
EncoderManager |
getEncoderManager()
Gets the current encoder manager for this writer.
|
LocaleId |
getLocale() |
String |
getName()
Gets the name of this writer.
|
IParameters |
getParameters()
Gets the current parameters for this writer.
|
ISkeletonWriter |
getSkeletonWriter()
Gets the skeleton writer associated with this writer.
|
IFilterWriter |
getSubDocWriter() |
Event |
handleEvent(Event event)
Handles the filter events.
|
protected void |
processDocumentPart(Event event) |
protected void |
processEndSubDocument(Ending res) |
protected void |
processStartDocument(StartDocument res) |
protected void |
processStartSubDocument(StartSubDocument res) |
void |
setOptions(LocaleId locale,
String defaultEncoding)
Sets the options for this writer.
|
void |
setOutput(OutputStream output)
Sets the output through its output stream.
|
void |
setOutput(String path)
Sets the output through the path of the output file.
|
void |
setParameters(IParameters params)
Sets new parameters for this writer.
|
void |
setSubDocWriter(IFilterWriter subDocWriter) |
public ZipFilterWriter(EncoderManager encoderManager)
public void cancel()
IFilterWritercancel in interface IFilterWriterpublic void close()
IFilterWriterclose in interface AutoCloseableclose in interface IFilterWriterpublic String getName()
IFilterWritergetName in interface IFilterWriterpublic EncoderManager getEncoderManager()
IFilterWritergetEncoderManager in interface IFilterWriterpublic ISkeletonWriter getSkeletonWriter()
IFilterWritergetSkeletonWriter in interface IFilterWriterpublic IParameters getParameters()
IFilterWritergetParameters in interface IFilterWriterpublic Event handleEvent(Event event)
IFilterWriterhandleEvent in interface IFilterWriterevent - The event to process.public void setOptions(LocaleId locale, String defaultEncoding)
IFilterWritersetOptions in interface IFilterWriterlocale - the output locale.defaultEncoding - Name of the character set encoding for the output.public void setOutput(String path)
IFilterWritersetOutput in interface IFilterWriterpath - Full path of the output file.public void setOutput(OutputStream output)
IFilterWritersetOutput in interface IFilterWriteroutput - Output stream to use for the output.public void setParameters(IParameters params)
IFilterWritersetParameters in interface IFilterWriterparams - The new parameters to use.protected void processStartDocument(StartDocument res)
protected void processDocumentPart(Event event)
protected ISkeletonWriter createSubDocumentSkeletonWriter(StartSubDocument res)
protected IFilterWriter createSubDocumentFilterWriter(StartSubDocument res)
protected StartDocument convertToStartDocument(StartSubDocument res)
protected void processStartSubDocument(StartSubDocument res)
protected void processEndSubDocument(Ending res)
public IFilterWriter getSubDocWriter()
public void setSubDocWriter(IFilterWriter subDocWriter)
public final LocaleId getLocale()
Copyright © 2022. All rights reserved.