此内容没有您所选择的语言版本。
9.7. ZIP File Sequencer
The ZIP file sequencer extracts the files and folders contained in the ZIP archive file, extracting the files and folders into the repository using JCR's
nt:file
and nt:folder
built-in node types. The structure of the output thus matches the logical structure of the contents of the ZIP file.
Example
This sequencer generates a graph structure that maps to the files and folders in the ZIP file. An example (listed in the JCR document view) from sequencing a ZIP file written into
/a/foo
and containing one file, /x/y/z.txt
is provided below:
The CND for the
zip:file
node type is listed below.
[zip:file] > nt:folder, mix:mimeType
[zip:file] > nt:folder, mix:mimeType
9.7.1. Using the ZIP File Sequencer 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
To use this sequencer, include the
modeshape-sequencer-zip
JAR in your application and configure the repository similar to: