Package org.graffiti.plugin.io.resources
Class FileSystemHandler
java.lang.Object
org.graffiti.plugin.io.resources.AbstractResourceIOHandler
org.graffiti.plugin.io.resources.FileSystemHandler
- All Implemented Interfaces:
ResourceIOHandler
public class FileSystemHandler extends AbstractResourceIOHandler
-
Field Summary
-
Constructor Summary
Constructors Constructor Description FileSystemHandler() -
Method Summary
Modifier and Type Method Description IOurlcopyDataAndReplaceURLPrefix(InputStream is, String targetFilename, ResourceIOConfigObject config)static FilegetFile(IOurl url)InputStreamgetInputStream(IOurl url)StringgetPrefix()static IOurlgetURL(File file)static booleanisFileUrl(IOurl url)IOurlsaveAs(IOurl source, String targetFilename)Methods inherited from class org.graffiti.plugin.io.resources.AbstractResourceIOHandler
save
-
Field Details
-
PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Details
-
FileSystemHandler
public FileSystemHandler()
-
-
Method Details
-
getPrefix
-
getInputStream
- Throws:
Exception
-
getFile
-
isFileUrl
-
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
-
saveAs
- Specified by:
saveAsin interfaceResourceIOHandler- Overrides:
saveAsin classAbstractResourceIOHandler- Throws:
Exception
-