public class ZipOperations extends Object
| Constructor and Description |
|---|
ZipOperations() |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
unzip(InputStream content)
Decompresses the given
content which is assumed to be in ZIP format. |
InputStream |
zip(InputStream content)
Compresses the given
content using the ZIP format. |
@MediaType(value="*/*",
strict=false)
@Summary(value="Compresses the given content using the ZIP format")
public InputStream zip(@Content
InputStream content)
content using the ZIP format.
Actual compression will occur in a lazy manner. This operation returns a stream and actual compression will happen as the stream is consumed. Keep in mind that any errors that may rise during compression will not occur in this operation, but in those which are consuming the stream returned here.
content - the content to be compressed@MediaType(value="*/*",
strict=false)
@Throws(value=UnzipErrorProvider.class)
@Summary(value="Decompresses the given content which is assumed to be in ZIP format")
public InputStream unzip(@Content
InputStream content)
content which is assumed to be in ZIP format.
Actual compression will occur in a lazy manner. This operation returns a stream and actual decompression will happen as the stream is consumed. Keep in mind that not all errors that may rise during compression will occur in this operation. Some might actual appear in the components that consume this stream
content - the content to be decompressedCopyright © 2018 MuleSoft, Inc.. All rights reserved.