public class SubFilterSkeletonWriter extends Object implements ISkeletonWriter
| Modifier and Type | Class and Description |
|---|---|
static interface |
SubFilterSkeletonWriter.TargetOutputs
Target outputs.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
GET_OUTPUT_TOKEN_ID |
| Constructor and Description |
|---|
SubFilterSkeletonWriter(ISkeletonWriter skelWriter,
IEncoder parentEncoder,
String startResourceId,
Set<String> handledTextUnitIds,
StringBuilder sourceOutput,
SubFilterSkeletonWriter.TargetOutputs targetOutputs) |
SubFilterSkeletonWriter(StartSubfilter resource) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this skeleton writer.
|
String |
getEncodedOutput(LocaleId locToUse) |
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 String GET_OUTPUT_TOKEN_ID
public SubFilterSkeletonWriter(StartSubfilter resource)
public SubFilterSkeletonWriter(ISkeletonWriter skelWriter, IEncoder parentEncoder, String startResourceId, Set<String> handledTextUnitIds, StringBuilder sourceOutput, SubFilterSkeletonWriter.TargetOutputs targetOutputs)
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 with the SubFilterSkeletonWriter.GET_OUTPUT_TOKEN_ID ID
(to return the overall output of this skeleton writer), or any other Ending resource.SubFilterSkeletonWriter.GET_OUTPUT_TOKEN_ID ID or an empty string otherwise.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 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 © 2022. All rights reserved.