Mule2.2中的文件傳輸器可以對文件進行靈活的處理,其功能非常完善,
File Transport提供一系列可配置的屬性,來提高它的實用性。
屬性
類型
目標
描述
writeToDirectory
String
connector, outbound endpoin
文件輸出的目錄
readFromDirectory
String
connector, inbound endpoin
文件輸入的目錄
autoDelete
boolean
connector, inbound endpoint
文件傳輸之后是否刪除源文件目錄文件
outputAppend
boolean
connector, outboun endpoint
pollingFrequency
long
connector, inbound endpoint
每個多長時間傳輸(以毫秒為單位)
moveToDirectory
String
connector, inbound endpoint
moveToPattern
String
connector, inbound endpoint
傳輸文件名模式
outputPattern
String
connector, outbound endpoint
輸出文件名模式
streaming
boolean
connector
是否把文件做為流處理
File Transport 實例:就是將項目中某個路徑下的文件讀取到另外一個文件夾中:
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="
xmlns:xsi="