Class DefaultGzipProcessor
- java.lang.Object
-
- com.composum.sling.clientlibs.processor.DefaultGzipProcessor
-
- All Implemented Interfaces:
GzipProcessor
,ClientlibProcessor
public class DefaultGzipProcessor extends Object implements GzipProcessor
-
-
Field Summary
-
Fields inherited from interface com.composum.sling.clientlibs.service.ClientlibProcessor
DEFAULT_CHARSET
-
-
Constructor Summary
Constructors Constructor Description DefaultGzipProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
processContent(InputStream source, ProcessorContext context)
Transforms the content and result in a stream with the probably changed content - for pipes.
-
-
-
Method Detail
-
processContent
public InputStream processContent(InputStream source, ProcessorContext context) throws IOException
Description copied from interface:ClientlibProcessor
Transforms the content and result in a stream with the probably changed content - for pipes.- Specified by:
processContent
in interfaceClientlibProcessor
- Parameters:
source
- 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
-
-