public interface ITextRegionRewriter
ITextRegionAccess.getRewriter() to obtain an instance implementing this interface.| Modifier and Type | Method and Description |
|---|---|
ITextReplacement |
createReplacement(int offset,
int length,
String text) |
void |
renderToAppendable(Iterable<? extends ITextReplacement> replacements,
Appendable result) |
void |
renderToAppendable(ITextSegment segment,
Iterable<? extends ITextReplacement> replacements,
Appendable result) |
String |
renderToString(Iterable<? extends ITextReplacement> replacements)
Applies all 'replacements' on the
ITextRegionAccess this rewriter is responsible for. |
String |
renderToString(ITextSegment input,
Iterable<? extends ITextReplacement> replacements)
Applies replacements similar to
renderToString(Iterable), but ITextRegion.getOffset() is
treated as relative to ITextRegion.getOffset() from 'input'. |
void renderToAppendable(Iterable<? extends ITextReplacement> replacements, Appendable result) throws IOException
IOExceptionITextReplacement createReplacement(int offset, int length, String text)
void renderToAppendable(ITextSegment segment, Iterable<? extends ITextReplacement> replacements, Appendable result) throws IOException
IOExceptionString renderToString(Iterable<? extends ITextReplacement> replacements)
Applies all 'replacements' on the ITextRegionAccess this rewriter is responsible for.
Replaces the text regions in 'input' identified by ITextRegion.getOffset() and
ITextRegion.getLength() with ITextReplacement.getReplacementText().
String renderToString(ITextSegment input, Iterable<? extends ITextReplacement> replacements)
renderToString(Iterable), but ITextRegion.getOffset() is
treated as relative to ITextRegion.getOffset() from 'input'.Copyright © 2015. All Rights Reserved.