ro.isdc.wro.model.resource.processor.impl.js
Class SemicolonAppenderPreProcessor
java.lang.Object
ro.isdc.wro.model.resource.processor.impl.js.SemicolonAppenderPreProcessor
- All Implemented Interfaces:
- ResourcePreProcessor
@SupportedResourceType(value=JS)
public class SemicolonAppenderPreProcessor
- extends Object
- implements ResourcePreProcessor
A preProcessor, responsible for adding a ';' character to the end of each js file. This ensure that no errors occurs
after the merge.
- 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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ALIAS
public static final String ALIAS
- See Also:
- Constant Field Values
SemicolonAppenderPreProcessor
public SemicolonAppenderPreProcessor()
process
public 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.
- Specified by:
process in interface ResourcePreProcessor
- 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.