public class MultiLineCommentStripperProcessor extends Object implements ResourcePreProcessor, ResourcePostProcessor
| Modifier and Type | Field and Description |
|---|---|
static String |
ALIAS |
static Pattern |
PATTERN
Pattern containing a regex matching multiline comments & empty new lines.
|
| Constructor and Description |
|---|
MultiLineCommentStripperProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
process(Reader reader,
Writer writer)
Perform actual resource processing.
|
void |
process(Resource resource,
Reader source,
Writer destination)
Process a content supplied by a reader and perform some sort of processing.
|
public static final Pattern PATTERN
public static final String ALIAS
public void process(Resource resource, Reader source, Writer destination) throws IOException
ResourcePreProcessorResource, because
this way you can ignore the other preProcessors from the chain.RuntimeException and the processing chain is interrupted (by default)WroConfiguration.isIgnoreFailingProcessor() is true)process in interface ResourcePreProcessorresource - the original resource as it found in the model.source - Reader used to read processed resource content.destination - Writer where used to write processed results.IOException - when an exception occurs. The future version will change the exception type to Exception, because
any exception may occur during processing. The processing failure will be handled based on value of
WroConfiguration.isIgnoreFailingProcessor() configuration flag.public void process(Reader reader, Writer writer) throws IOException
ResourcePostProcessorprocess in interface ResourcePostProcessorreader - source stream.writer - destination stream.IOExceptionCopyright © 2008-2016. All Rights Reserved.