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 voidcopyContent(InputStream intemp, OutputStream out)static voidcopyContent(InputStream in, OutputStream out, long maxIO)static IOurlcopyDataAndReplaceURLPrefix(String targetHandlerPrefix, String srcFileName, InputStream is, ResourceIOConfigObject config)static IOurlcopyDataAndReplaceURLPrefix(String targetHandlerPrefix, IOurl sourceURL, ResourceIOConfigObject config)static ResourceIOHandlergetHandlerFromPrefix(String prefix)static MyByteArrayInputStreamgetInputStreamMemoryCached(InputStream is)static MyByteArrayInputStreamgetInputStreamMemoryCached(IOurl url)static voidregisterIOHandler(ResourceIOHandler handler)static voidremoveIOHandler(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:
IOExceptionException
-
getInputStreamMemoryCached
public static MyByteArrayInputStream getInputStreamMemoryCached(InputStream is) throws IOException, Exception- Throws:
IOExceptionException
-
copyContent
- Throws:
IOException
-
copyContent
- Throws:
IOException
-
getHandlerFromPrefix
-