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 IOurlcopyDataAndReplaceURLPrefix(InputStream is, String targetFilename, ResourceIOConfigObject config)InputStreamgetInputStream(IOurl url)StringgetPrefix()IOurlsave(IOurl source)IOurlsaveAs(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
-