INTEXT-40 Add ZIP Transformer
* Add zip-transformer * Add unzip-transformer * Add UnZipResultSplitter * Add sample For reference see: https://jira.springsource.org/browse/INTEXT-40
This commit is contained in:
56
samples/zip/README.md
Normal file
56
samples/zip/README.md
Normal file
@@ -0,0 +1,56 @@
|
||||
Spring Integration Zip Sample
|
||||
===================
|
||||
|
||||
This sample illustrates the usage of the Spring Integration Zip Extension. It uses the following components:
|
||||
|
||||
* zip-transformer
|
||||
* unzip-transformer
|
||||
|
||||
You can run the application by either
|
||||
|
||||
* running the "Main" class from within STS (Right-click on Main class --> Run As --> Java Application)
|
||||
* or from the command line:
|
||||
- mvn package
|
||||
- mvn exec:java
|
||||
|
||||
You should see a screen as the following:
|
||||
|
||||
```
|
||||
=========================================================
|
||||
|
||||
Welcome to the Spring Integration Zip Sample
|
||||
|
||||
For more information please visit:
|
||||
http://www.springsource.org/spring-integration
|
||||
|
||||
=========================================================
|
||||
17:08:41.883 INFO [org.springframework.integration.samples.zip.Main.main()][org.springframework.integration.samples.zip.SpringIntegrationUtils]
|
||||
=========================================================
|
||||
|
||||
Intput directory is: '/dev/spring-integration-extensions/samples/zip/input-zip'
|
||||
Intput directory is: '/dev/spring-integration-extensions/samples/zip/input-uncompressed'
|
||||
Output directory is: 'target/output/decompressedFilesOut'
|
||||
Output directory is: 'target/output/zipFilesOut'
|
||||
|
||||
=========================================================
|
||||
17:08:41.887 INFO [org.springframework.integration.samples.zip.Main.main()][org.springframework.integration.samples.zip.Main]
|
||||
=========================================================
|
||||
|
||||
Please press 'q + Enter' to quit the application.
|
||||
|
||||
=========================================================
|
||||
```
|
||||
## Compressing Files
|
||||
|
||||
Drop an uncompressed file into the **input-uncompressed** directory. The file will be compressed and stored under **target/output/zipFilesOut**.
|
||||
|
||||
## Uncompressing Files
|
||||
|
||||
Drop a compressed file into the **input-zip** directory. The file will be decompressed and stored under **target/output/decompressedFilesOut**.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
For help please take a look at the Spring Integration documentation:
|
||||
|
||||
http://www.springsource.org/spring-integration
|
||||
|
||||
Reference in New Issue
Block a user