Requirements for custom stream processing in File data sets
Standard File data sets support reading or writing compressed
.zip
and .gzip
files. To extend these
capabilities to support encryption, decryption, and other compression methods for files in
repositories, implement custom stream processing as Java classes on the Pega Platform server classpath.
To implement custom stream processing, ensure that:
- The input stream processing class implements
java.util.function.Function<InputStream, InputStream>
. - The output stream processing class implements
java.util.function.Function<OutputStream, OutputStream>
. - The classes are present on the Pega Platform server classpath on
every node that uses the data set, for example, by importing the
.jar
file to eitherpega-enginecode
codeset or thecustomer
codeset. The codeset version must be the same as the release version. - For custom stream processing with ZIP compression, the
java.util.function.Function<OutputStream, OutputStream>
function does not replace the original stream. - The classes are public.
- The classes expose a public constructor with no arguments.
- You restart the application server after importing the new classes.
Previous topic Creating a File data set record for files on repositories Next topic Run-time data