public class NewlineNormalizer extends LineSeparatorHarmonizer implements org.eclipse.xpand2.output.PostProcessor
Constructor and Description |
---|
NewlineNormalizer(java.lang.String lineDelimiterToUse) |
Modifier and Type | Method and Description |
---|---|
void |
afterClose(org.eclipse.xpand2.output.FileHandle impl) |
void |
beforeWriteAndClose(org.eclipse.xpand2.output.FileHandle impl) |
java.lang.String |
normalizeLineDelimiters(java.lang.CharSequence content)
Converts the given content into a
CharSequence that uses only the configured lineDelimiterToUse |
getWhitespaceInformationProvider, postProcess, replaceLineSeparators
public void beforeWriteAndClose(org.eclipse.xpand2.output.FileHandle impl)
beforeWriteAndClose
in interface org.eclipse.xpand2.output.PostProcessor
public void afterClose(org.eclipse.xpand2.output.FileHandle impl)
afterClose
in interface org.eclipse.xpand2.output.PostProcessor
public java.lang.String normalizeLineDelimiters(java.lang.CharSequence content)
CharSequence
that uses only the configured lineDelimiterToUse