Package org.graffiti.plugin.io.resources
Class FTPhandler
java.lang.Object
org.graffiti.plugin.io.resources.AbstractResourceIOHandler
org.graffiti.plugin.io.resources.FTPhandler
- All Implemented Interfaces:
ResourceIOHandler
public class FTPhandler extends AbstractResourceIOHandler
-
Field Summary
-
Constructor Summary
Constructors Constructor Description FTPhandler()
-
Method Summary
Modifier and Type Method Description IOurl
copyDataAndReplaceURLPrefix(InputStream is, String targetFilename, ResourceIOConfigObject config)
InputStream
getInputStream(IOurl url)
String
getPrefix()
static IOurl
getURL(String httpurl)
Methods inherited from class org.graffiti.plugin.io.resources.AbstractResourceIOHandler
save, saveAs
-
Field Details
-
PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Details
-
FTPhandler
public FTPhandler()
-
-
Method Details
-
getPrefix
-
getInputStream
- Throws:
Exception
-
copyDataAndReplaceURLPrefix
public IOurl copyDataAndReplaceURLPrefix(InputStream is, String targetFilename, ResourceIOConfigObject config) throws Exception- Returns:
- new url, or null, if not copied
- Throws:
Exception
- if something went wrong during copying
-
getURL
-