public class StandardPartHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
protected OpenXMLContentFilter |
contentFilter |
protected List<XMLEvent> |
documentPartEvents |
protected IdGenerator |
documentPartIdGenerator |
protected ZipEntry |
entry |
protected List<Event> |
filterEvents |
protected ConditionalParameters |
params |
protected net.sf.okapi.filters.openxml.OpenXMLZipFile |
zipFile |
| Constructor and Description |
|---|
StandardPartHandler(OpenXMLContentFilter contentFilter,
ConditionalParameters cparams,
net.sf.okapi.filters.openxml.OpenXMLZipFile zipFile,
ZipEntry entry) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addEventToDocumentPart(XMLEvent e) |
void |
close() |
protected Event |
createStartSubDocumentEvent(String documentId,
String subDocumentId) |
boolean |
hasNext() |
void |
logEvent(Event e) |
Event |
next() |
Event |
open(String documentId,
String subDocumentId,
LocaleId srcLang)
Open this part and perform any initial processing.
|
protected Event |
openContentFilter(InputStream is,
String documentId,
String subDocumentId,
LocaleId srcLang)
Open the nested
OpenXMLContentFilter instance on the specified InputStream,
and convert a START_SUBDOCUMENT event for it. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, removeprotected OpenXMLContentFilter contentFilter
protected final ConditionalParameters params
protected final net.sf.okapi.filters.openxml.OpenXMLZipFile zipFile
protected final ZipEntry entry
protected final IdGenerator documentPartIdGenerator
public StandardPartHandler(OpenXMLContentFilter contentFilter, ConditionalParameters cparams, net.sf.okapi.filters.openxml.OpenXMLZipFile zipFile, ZipEntry entry)
public Event open(String documentId, String subDocumentId, LocaleId srcLang) throws IOException
OpenXMLPartHandlerdocumentId - document identifiersubDocumentId - sub-document identifiersrcLang - the locale of the sourceIOException - if any problem is encounteredpublic boolean hasNext()
public Event next()
public void close()
protected Event openContentFilter(InputStream is, String documentId, String subDocumentId, LocaleId srcLang)
OpenXMLContentFilter instance on the specified InputStream,
and convert a START_SUBDOCUMENT event for it.is - input streamdocumentId - document identifiersubDocumentId - sub-document identifiersrcLang - the source languagepublic void logEvent(Event e)
protected Event createStartSubDocumentEvent(String documentId, String subDocumentId)
protected void addEventToDocumentPart(XMLEvent e)
Copyright © 2019. All rights reserved.