FetchDocument.java

Use this sample to obtain a file, for example, a DOC or TXT file from the repository. If multiple versions exist, all of them are extracted and stored on the local computer. Numeric extensions (0, 1,…,.n) are added to the file name after the extraction.

Input parameters:

user pwd host port folder docname

Output:

One or more (if multiple versions exist) document artifacts.