public class OpenXMLFilterWriter extends Object implements IFilterWriter
Implements the IFilterWriter interface for the OpenXMLFilter, which filters Microsoft Office Word, Excel, and Powerpoint Documents. OpenXML is the format of these documents.
Since OpenXML files are Zip files that contain XML documents, this filter writer handles writing out the zip file, and uses OpenXMLContentSkeletonWriter to output the XML documents.
| Constructor and Description |
|---|
OpenXMLFilterWriter()
No-arg constructor in case it's needed.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels processing of a filter; yet to be implemented.
|
void |
close()
Closes the zip file.
|
EncoderManager |
getEncoderManager()
Gets the current encoder manager for this writer.
|
String |
getName()
Gets the name of the filter writer.
|
ConditionalParameters |
getParameters()
Gets the current parameters for this writer.
|
ISkeletonWriter |
getSkeletonWriter()
Gets the skeleton writer associated with this writer.
|
Event |
handleEvent(Event event)
Handles an event.
|
void |
setOptions(LocaleId language,
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.
|
public OpenXMLFilterWriter()
public void cancel()
cancel in interface IFilterWriterpublic void close()
close in interface AutoCloseableclose in interface IFilterWriterpublic String getName()
getName in interface IFilterWriterpublic EncoderManager getEncoderManager()
IFilterWritergetEncoderManager in interface IFilterWriterpublic ISkeletonWriter getSkeletonWriter()
IFilterWritergetSkeletonWriter in interface IFilterWriterpublic Event handleEvent(Event event)
handleEvent in interface IFilterWriterevent - the event to processpublic void setOptions(LocaleId language, String defaultEncoding)
IFilterWritersetOptions in interface IFilterWriterlanguage - 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.public ConditionalParameters getParameters()
IFilterWritergetParameters in interface IFilterWriterCopyright © 2022. All rights reserved.