public class SubFilterSkeletonWriter extends Object implements ISkeletonWriter
| Modifier and Type | Field and Description |
|---|---|
static Ending |
GET_OUTPUT |
static StartDocument |
SET_OPTIONS |
| Constructor and Description |
|---|
SubFilterSkeletonWriter() |
SubFilterSkeletonWriter(StartSubfilter resource) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this skeleton writer.
|
String |
getEncodedOutput() |
protected IEncoder |
getParentEncoder() |
ISkeletonWriter |
getSkelWriter() |
String |
getStartResourceId() |
String |
processDocumentPart(DocumentPart resource)
Processes the DOCUMENT_PART event.
|
String |
processEndDocument(Ending resource)
Get output created by this skeleton writer from a sequence of events.
|
String |
processEndGroup(Ending resource)
Processes the END_GROUP event.
|
String |
processEndSubDocument(Ending resource)
Processes the END_SUBDOCUMENT event.
|
String |
processEndSubfilter(EndSubfilter resource) |
String |
processStartDocument(LocaleId outputLocale,
String outputEncoding,
ILayerProvider layer,
EncoderManager encoderManager,
StartDocument resource)
Processes the START_DOCUMENT event.
|
String |
processStartGroup(StartGroup resource)
Processes the START_GROUP event.
|
String |
processStartSubDocument(StartSubDocument resource)
Processes a START_SUBDOCUMENT event.
|
String |
processStartSubfilter(StartSubfilter resource) |
String |
processTextUnit(ITextUnit resource)
Processes the TEXT_UNIT event.
|
SubFilterSkeletonWriter |
setOptions(LocaleId outputLocale,
String outputEncoding,
StartSubfilter startSubfilter,
ILayerProvider layer) |
protected void |
setParentEncoder(IEncoder parentEncoder) |
protected void |
setSkelWriter(ISkeletonWriter skelWriter) |
public static final Ending GET_OUTPUT
public static final StartDocument SET_OPTIONS
public SubFilterSkeletonWriter()
public SubFilterSkeletonWriter(StartSubfilter resource)
public void close()
ISkeletonWriterclose in interface ISkeletonWriterpublic String getStartResourceId()
public String processStartDocument(LocaleId outputLocale, String outputEncoding, ILayerProvider layer, EncoderManager encoderManager, StartDocument resource)
ISkeletonWriterprocessStartDocument in interface ISkeletonWriteroutputLocale - the output locale.outputEncoding - the name of the output charset encoding.layer - the layer provider to use.encoderManager - the encoder manager to use.resource - the StartDocument resource associated with the event.public String processEndDocument(Ending resource)
processEndDocument in interface ISkeletonWriterresource - can be the SubFilterSkeletonWriter.GET_OUTPUT token (to return the overall output
of this skeleton writer), or any other Ending resource.public String processStartSubDocument(StartSubDocument resource)
ISkeletonWriterprocessStartSubDocument in interface ISkeletonWriterresource - the StartSubDocument resource associated with the event.public String processEndSubDocument(Ending resource)
ISkeletonWriterprocessEndSubDocument in interface ISkeletonWriterresource - the Ending resource associated with the event.public String processStartGroup(StartGroup resource)
ISkeletonWriterprocessStartGroup in interface ISkeletonWriterresource - the StartGroup resource associated with the event.public String processEndGroup(Ending resource)
ISkeletonWriterprocessEndGroup in interface ISkeletonWriterresource - the Ending resource associated with the event.public String processTextUnit(ITextUnit resource)
ISkeletonWriterprocessTextUnit in interface ISkeletonWriterresource - the TextUnit resource associated with the event.public String processDocumentPart(DocumentPart resource)
ISkeletonWriterprocessDocumentPart in interface ISkeletonWriterresource - the DocumentPart resource associated with the event.public String processStartSubfilter(StartSubfilter resource)
processStartSubfilter in interface ISkeletonWriterpublic String processEndSubfilter(EndSubfilter resource)
processEndSubfilter in interface ISkeletonWriterpublic String getEncodedOutput()
public SubFilterSkeletonWriter setOptions(LocaleId outputLocale, String outputEncoding, StartSubfilter startSubfilter, ILayerProvider layer)
public ISkeletonWriter getSkelWriter()
protected void setSkelWriter(ISkeletonWriter skelWriter)
protected IEncoder getParentEncoder()
protected void setParentEncoder(IEncoder parentEncoder)
Copyright © 2020. All rights reserved.