blob: 5a9f3682ffb773d30315ad1b5fd60866ecf5f54c [file] [log] [blame]
{
"classLoaderSharing" : "workflow",
"script" : "\n BufferedWriter out;\n if (encoding == void) {\n \tout = new BufferedWriter(new FileWriter(outputFile));\n }\n else {\n \tout = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(outputFile), encoding)); \n }\nout.write(filecontents);\nout.flush();\nout.close();\noutputFile = filecontents;\n",
"localworkerName" : "net.sourceforge.taverna.scuflworkers.io.TextFileWriter",
"inputPorts" : [ {
"name" : "outputFile",
"depth" : 0,
"type" : "String"
}, {
"name" : "filecontents",
"depth" : 0,
"type" : "String"
}, {
"name" : "encoding",
"depth" : 0,
"type" : "String"
} ],
"outputPorts" : [ {
"name" : "outputFile",
"depth" : 0,
"granularDepth" : 0
} ],
"isAltered" : false
}