知识库 : iUAP DI对文件系统的支持

Edit Document

iUAP DI 对文件 系统的支持

在 iUAP DI 中 使用 数据文件,可以支持 多种 的文件 系统。例如 在文本输入中选择的文件既可以是本地文件,也可以是 ftp 文件。 但 并非所有的文件系统的使用是一样的,在 下文 中会做详细 介绍。

 

支持 的文件系统列表

文件系统

授权

读取

写入

创建或 删除

随机读取

重命名

BZIP2

否

是

是

否

否

否

File

否

是

是

是

读写均支持

是

FTP

是

是

是

是

读支持

是

FTPS

是

是

是

是

读支持

是

GZIP

否

是

是

否

否

否

HTTP

是

是

否

否

读支持

否

HTTPS

是

是

否

否

读支持

否

SFTP

是

是

是

是

读支持

是

Tar

否

是

否

否

否

否

CIFS

是

是

是

是

读写均支持

是

WebDAV

是

是

是

是

读写均支持

是

Zip

否

是

否

否

否

否

本地 文件系统

访问 本地文件系统

URI 格式

[file://]   absolute-path

Where   absolute-path   is a valid absolute file name for the local platform. UNC names are supported under Windows.

absolute-path   是 一个合理的绝对 本地 文件 路径, fille :// 可以 省略

例如:

  •                    file:///home/someuser/somedir
  •                    file:///C:/Documents and Settings
  •                    file://///somehost/someshare/afile.txt
  •                    /home/someuser/somedir
  •                    c:\program files\some dir
  •                    c:/program files/some dir

Zip 和 Tar

仅读取 Zip 和 Tar 文件的 内容 .

URI 格式

zip://   arch-file-uri [!   absolute-path ]

jar://   arch-file-uri [!   absolute-path ]

tar://   arch-file-uri [!   absolute-path ]

tgz://   arch-file-uri [!   absolute-path ]

tbz2://   arch-file-uri [!   absolute-path ]

Where   arch-file-uri   refers to a file of any supported type, including other zip files. not te: if you would like to use the ! as no rmal character it must be escaped using   %21 .
tgz   and   tbz2   are convenience for   tar:gz   and   tar:bz2 .

如果 文件名中还有 !, 使用 转义符 %21

例如

  •                    zip:../lib/classes.jar!/META-INF/manifest.mf
  •                    zip:http://somehost/downloads/somefile.zip
  •                    jar:zip:outer.zip!/nested.jar!/somedir
  •                    jar:zip:outer.zip!/nested.jar!/some%21dir
  •                    tar:gz:http://anyhost/dir/mytar.tar.gz!/mytar.tar!/path/in/tar/README.txt
  •                    tgz:file://anyhost/dir/mytar.tgz!/somepath/somefile

gzip 和 bzip2

访问 gzip and bzip2 文件 内容

URI 格式

gz://   compressed-file-uri

bz2://   compressed-file-uri

例如

  •                    gz:/my/gz/file.gz

HTTP 和 HTTPS

访问 HTTP 服务器上 的文件 .

URI 格式

http://[   username [:   password ]@]   hostname [:   port ][   absolute-path ]

https://[   username [:   password ]@]   hostname [:   port ][   absolute-path ]

例如

  •                    http://somehost:8080/downloads/somefile.jar
  •                    http://myusername@somehost/index.html

WebDAV

访问 WebDAV 服务器的 文件 .

URI 格式

webdav://[   username [:   password ]@]   hostname [:   port ][   absolute-path ]

例如

  •                    webdav://somehost:8080/dist

FTP

访问 FTP 服务器 上的文件

URI 格式

ftp://[   username [:   password ]@]   hostname [:   port ][   relative-path ]

例如

  •                    ftp://myusername:mypassword@somehost/pub/downloads/somefile.tgz

By default, the path is relative to the user's home directory. This can be changed with:

FtpFileSystemConfigBuilder.getInstance().setUserDirIsRoot(options, false);

FTPS

访问通过 SSL 套字节加密的 FTP 服务器的文件。

URI 格式

ftps://[   username [:   password ]@]   hostname [:   port ][   absolute-path ]

例如

  •                    ftps://myusername:mypassword@somehost/pub/downloads/somefile.tgz

SFTP

访问 SFTP 服务器的文件( SSH 或者 SCP 服务器 )

URI 格式

sftp://[   username [:   password ]@]   hostname [:   port ][   relative-path ]

例如

  •                    sftp://myusername:mypassword@somehost/pub/downloads/somefile.tgz

CIFS

访问 CIFS 服务器 的文件,例如 Samba 服务器或者 Windows 共享

URI 格式

smb://[   domain / username [:   password ]@]   hostname [:   port ][   absolute-path ]

例如

  •                    smb://podmain /lp:yonyou*123@ somehost/home

 

Attachments:

iUAP DI对文件系统的支持.docx (application/vnd.openxmlformats-officedocument.wordprocessingml.document)