Package org.graffiti.plugin.io.resources
Interface ResourceIOHandler
- All Known Implementing Classes:
AbstractResourceIOHandler
,FileSystemHandler
,FTPhandler
,HTTPhandler
,HTTPShandler
public interface ResourceIOHandler
-
Method Summary
Modifier and Type Method Description IOurl
copyDataAndReplaceURLPrefix(InputStream is, String targetFilename, ResourceIOConfigObject config)
InputStream
getInputStream(IOurl url)
String
getPrefix()
IOurl
save(IOurl source)
IOurl
saveAs(IOurl source, String targetFilename)
-
Method Details
-
getPrefix
String getPrefix() -
getInputStream
- Throws:
Exception
-
copyDataAndReplaceURLPrefix
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
-
saveAs
- Throws:
Exception
-
save
- Throws:
Exception
-