com.composum.sling.clientlibs.service.ClientlibProcessor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of composum-nodes-commons Show documentation
Show all versions of composum-nodes-commons Show documentation
general components and objects to use the Sling API
package com.composum.sling.clientlibs.service;
import com.composum.sling.clientlibs.processor.ProcessorContext;
import java.io.IOException;
import java.io.InputStream;
/** Modifies the content of resources embedded in a client library. */
public interface ClientlibProcessor {
String DEFAULT_CHARSET = "UTF-8";
/**
* Transforms the content and result in a stream with the probably changed content - for pipes.
*
* @param sourceStream the original to process by the processor. the processor returns a different stream, this
* must be closed by the processor.
* @return the transformation result - might also be the originial sourceStream if switched off
*/
InputStream processContent(InputStream sourceStream, ProcessorContext context)
throws IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy