ro.isdc.wro.model.resource.processor
Interface ResourcePreProcessor
- All Known Implementing Classes:
- AbstractCssUrlRewritingProcessor, AbstractProcessorDecorator, CommentStripperProcessor, ConformColorsCssProcessor, CopyrightKeeperProcessorDecorator, CssCompressorProcessor, CssDataUriPreProcessor, CssImportPreProcessor, CssMinProcessor, CssUrlRewritingProcessor, CssVariablesProcessor, DuplicatesAwareCssDataUriPreProcessor, ExtensionsAwareProcessorDecorator, JawrCssMinifierProcessor, JSMinProcessor, MultiLineCommentStripperProcessor, PlaceholderProcessor, SemicolonAppenderPreProcessor, SingleLineCommentStripperProcessor, VariablizeColorsCssProcessor
public interface ResourcePreProcessor
ResourcePreProcessor. A processor which will be applied to the resource before merging.
- Author:
- Alex Objelean
|
Method Summary |
void |
process(Resource resource,
Reader reader,
Writer writer)
Process a content supplied by a reader and perform some sort of processing. |
process
void process(Resource resource,
Reader reader,
Writer writer)
throws IOException
- Process a content supplied by a reader and perform some sort of processing. It is important to know that you should
use reader for processing instead of trying to access the resource original content using
Resource, because
this way you can ignore the other preProcessors from the chain.
- Parameters:
resource - the original resource as it found in the model.reader - Reader used to read processed resource content.writer - Writer where used to write processed results.
- Throws:
IOException - when IO exception occurs.
Copyright © 2008-2011. All Rights Reserved.