Interface ClientlibProcessor
-
- All Known Subinterfaces:
CssProcessor
,GzipProcessor
,JavascriptProcessor
- All Known Implementing Classes:
CssUrlMapper
,DefaultGzipProcessor
,DefaultJavascriptProcessor
,ProcessorPipeline
,YUICssProcessor
public interface ClientlibProcessor
Modifies the content of resources embedded in a client library.
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_CHARSET
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStream
processContent(InputStream sourceStream, ProcessorContext context)
Transforms the content and result in a stream with the probably changed content - for pipes.
-
-
-
Field Detail
-
DEFAULT_CHARSET
static final String DEFAULT_CHARSET
- See Also:
- Constant Field Values
-
-
Method Detail
-
processContent
InputStream processContent(InputStream sourceStream, ProcessorContext context) throws IOException
Transforms the content and result in a stream with the probably changed content - for pipes.- Parameters:
sourceStream
- the original to process by the processor. the processor returns a different stream, this must be closed by the processor.- Returns:
- the transformation result - might also be the originial sourceStream if switched off
- Throws:
IOException
-
-