Package | Description |
---|---|
de.innovationgate.wgpublisher.encoders |
Types for implementing OpenWGA encoders
|
Modifier and Type | Method and Description |
---|---|
EncoderOutput |
EncoderOutput.addChunk(java.lang.CharSequence text)
Add a new text chunk to the output of origin
TextChunk.Origin.INPUT and content type "text/plain" |
EncoderOutput |
EncoderOutput.addChunk(TextChunk.Origin origin,
java.lang.String contentType,
java.lang.CharSequence text)
Add a new text chunk to the output
|
EncoderOutput |
EncoderOutput.chainEncoder(WGAEncoder encoder)
Chains another encoder that should run after this encoder run finishes.
|
EncoderOutput |
EncoderOutput.clearChunks()
Removes all already added chunks
|
EncoderOutput |
EncoderOutput.ignoreChunk()
Notifies that the encoder ignores the current text chunk, which will be kept unmodified.
|
EncoderOutput |
EncoderOutput.replaceChunk(java.lang.String text)
Replaces text of the input chunk with the given chunk text, keeping the origin of the original chunk
|
EncoderOutput |
EncoderOutput.replaceChunkViaRegex(java.util.regex.Pattern pattern,
java.lang.String replacement)
Replaces parts of the input chunk using a regular expression.
|
Modifier and Type | Method and Description |
---|---|
void |
WGAEncoder.encode(WGA wga,
TextChunk input,
EncoderOutput output,
java.util.Map<java.lang.String,java.lang.String> flags)
Encodes a text chunk, using the given
EncoderOutput object to place the result. |
void |
EncodingFormatterEncoder.encode(WGA wga,
TextChunk input,
EncoderOutput output,
java.util.Map<java.lang.String,java.lang.String> flags) |