@@ -0,0 +1,1634 @@
+package de.mpicbg.knime.hcs.base.utils;%0A%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0Aimport java.net.URI;%0Aimport java.net.URISyntaxException;%0Aimport java.net.URL;%0Aimport java.net.URLConnection;%0A%0A%0A/**%0A* @author niederle%0A*%0A* these methods are meant to support the KNIME-protocol for URLs%0A* it's important to place this class within KNIME, as the KNIME-protocol is unknown otherwise%0A* and will take care of interpreting local style as file://%0A*%0A*/%0Apublic class URLSupport %7B%0A%0A/**%0A* URL connection%0A*/%0Aprivate URLConnection connection;%0A%0A/**%0A* default constructor%0A*/%0Apublic URLSupport() %7B%0Athis.connection = null;%09%0A%7D%0A%0A/**%0A* tries to create a URL connection by a given file name%0A* it adds file:// if the protocol is not given to treat it as local%0A* @param filename%0A* @throws URISyntaxException%0A* @throws IOException%0A*/%0Apublic URLSupport(String filename) throws URISyntaxException, IOException %7B%0Athis.connection = null;%0A     //check if URL can be resolved%0A     // retrieve protocol%0A     String protocol = (new URI(filename)).getScheme();%0A     // try to add file-protocol to treat it as a local file%0A     if(protocol == null) filename = %22file://%22 + filename;%0A    %0AURL fileURL = new URL(filename);%0Athis.connection = fileURL.openConnection();%0A%7D%0A%0A/**%0A* @return timestamp of the last modification time%0A*/%0A    public long getTimestamp() %7B%0A     return this.connection.getLastModified();%0A    %7D%0A    %0A    /**%0A*%0A* @return InputStream of this URL connection%0A* @throws IOException%0A*/%0A    public InputStream getInputStream() throws IOException %7B%0A     if(this.connection == null) return null;%0A     return this.connection.getInputStream();%0A    %7D%0A%0A%7D

Add URLSupport class