blob: 2a23a47f04ac06bdf097347341c8aa73be39e590 [file] [log] [blame]
{
"classLoaderSharing" : "workflow",
"script" : "String lowerCaseContent = document.toLowerCase();\nint index = 0;\nList imagelinks = new ArrayList();\nwhile ((index = lowerCaseContent.indexOf(\"<img\", index)) != -1) {\n\tif ((index = lowerCaseContent.indexOf(\"src\", index)) == -1)\n\t\tbreak;\n\tif ((index = lowerCaseContent.indexOf(\"=\", index)) == -1)\n\t\tbreak;\n\tindex++;\n\tString remaining = document.substring(index);\n\tStringTokenizer st = new StringTokenizer(remaining, \"\\t\\n\\r\\\">#\");\n\tString strLink = st.nextToken();\n\timagelinks.add(strLink);\n}\n\n",
"localworkerName" : "org.embl.ebi.escience.scuflworkers.java.ExtractImageLinks",
"inputPorts" : [ {
"name" : "document",
"depth" : 0,
"type" : "String"
} ],
"outputPorts" : [ {
"name" : "imagelinks",
"depth" : 1,
"granularDepth" : 1
} ],
"isAltered" : false
}