public class DefaultResourceAdvisor extends Object implements ResourceAdvisor
Constructor and Description |
---|
DefaultResourceAdvisor() |
Modifier and Type | Method and Description |
---|---|
void |
copyResource(LocatableInputSupplier<? extends InputStream> resource,
java.nio.file.Path target,
org.eclipse.core.runtime.content.IContentType resourceType,
boolean includeRemote,
IOReporter reporter)
Copy a resource to a target location.
|
public void copyResource(LocatableInputSupplier<? extends InputStream> resource, java.nio.file.Path target, org.eclipse.core.runtime.content.IContentType resourceType, boolean includeRemote, IOReporter reporter) throws IOException
ResourceAdvisor
copyResource
in interface ResourceAdvisor
resource
- the resource to copytarget
- the target location, usually a fileresourceType
- the resource content type, may be null
if unknownincludeRemote
- specifies if auxiliary resources associated to the
resource that are available in a remote location should be
copied tooreporter
- the reporter of the I/O process any errors should be
reported toIOException
- if copying the resource fails or copying the resource
is not possibleBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a