Copies a resource's content to another resource.
Parameters: source - resource to read from Parameters: target - resource to write to throws: IOException - if content cannot be copied
Creates a resource object using the given uri.
At the moment only absolute URIs with the "file" or
"pfixroot" scheme are supported.
Parameters: uri - URI denoting the resource to access Resource object for the given URI throws: IllegalArgumentException - if given URIuses a scheme that is not supported or isnot absolute See Also:ResourceUtil.getFileResource(String)
Returns a resource interpreting the supplied string as
an URI. Special characters in the URI have to be escaped
as the supplied string is directly passed to the constructor
URI.URI(java.lang.String) .
Parameters: uri - String specifying a full URI Resource for the specified URI throws: IllegalArgumentException - if supplied does notrepresent a valid URI See Also:ResourceUtil.getFileResource(URI)
Returns a resource resolving the given name relative to the
given parent. The parent is always treated as a directory
even if its URI does not end with a "/"
Parameters: parent - directory to look for resource in Parameters: name - filename or relative path resource specified by the concatenation of the given parentand name throws: IllegalArgumentException - if name is not relative
Returns a resource interpreting the given path relative
to Pustefix's docroot.
Parameters: path - path of the resource relative to the docroot Resource from the docroot