Package org.graffiti.plugin.io.resources
Class ResourceIOManager
java.lang.Object
org.graffiti.plugin.io.resources.ResourceIOManager
public class ResourceIOManager extends Object
-
Field Summary
-
Method Summary
Modifier and Type Method Description static void
copyContent(InputStream intemp, OutputStream out)
static void
copyContent(InputStream in, OutputStream out, long maxIO)
static IOurl
copyDataAndReplaceURLPrefix(String targetHandlerPrefix, String srcFileName, InputStream is, ResourceIOConfigObject config)
static IOurl
copyDataAndReplaceURLPrefix(String targetHandlerPrefix, IOurl sourceURL, ResourceIOConfigObject config)
static ResourceIOHandler
getHandlerFromPrefix(String prefix)
static MyByteArrayInputStream
getInputStreamMemoryCached(InputStream is)
static MyByteArrayInputStream
getInputStreamMemoryCached(IOurl url)
static void
registerIOHandler(ResourceIOHandler handler)
static void
removeIOHandler(ResourceIOHandler handler)
-
Field Details
-
SEPERATOR
- See Also:
- Constant Field Values
-
-
Method Details
-
registerIOHandler
-
removeIOHandler
-
copyDataAndReplaceURLPrefix
public static IOurl copyDataAndReplaceURLPrefix(String targetHandlerPrefix, IOurl sourceURL, ResourceIOConfigObject config) throws Exception- Returns:
- new url or null, if not copied
- Throws:
Exception
-
copyDataAndReplaceURLPrefix
public static IOurl copyDataAndReplaceURLPrefix(String targetHandlerPrefix, String srcFileName, InputStream is, ResourceIOConfigObject config) throws Exception- Throws:
Exception
-
getInputStreamMemoryCached
public static MyByteArrayInputStream getInputStreamMemoryCached(IOurl url) throws IOException, Exception- Throws:
IOException
Exception
-
getInputStreamMemoryCached
public static MyByteArrayInputStream getInputStreamMemoryCached(InputStream is) throws IOException, Exception- Throws:
IOException
Exception
-
copyContent
- Throws:
IOException
-
copyContent
- Throws:
IOException
-
getHandlerFromPrefix
-