public interface IRawArtifactProvider extends IArtifactProvider
Over IArtifactProvider
, this interface adds methods for obtaining artifacts in raw
formats, e.g. compressed with the JAR-optimized pack200 format. (With the
IArtifactProvider interface, artifacts can only be obtained in the canonical format,
i.e. the format in which the artifact can be used directly without additional decompression.)
Modifier and Type | Method and Description |
---|---|
boolean |
contains(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
Returns
true if this a provider for an artifact in the given format |
org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor[] |
getArtifactDescriptors(org.eclipse.equinox.p2.metadata.IArtifactKey key)
Return the raw artifact formats in which the given artifact can be provided
|
org.eclipse.core.runtime.IStatus |
getRawArtifact(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor,
OutputStream destination,
org.eclipse.core.runtime.IProgressMonitor monitor)
Writes the artifact in the described raw format to the given output stream
|
contains, getArtifact
org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor[] getArtifactDescriptors(org.eclipse.equinox.p2.metadata.IArtifactKey key)
key
- the artifact key to lookupboolean contains(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
true
if this a provider for an artifact in the given formatdescriptor
- an artifact descriptortrue
if this instance can provide the artifact as raw artifact in the
described formatorg.eclipse.core.runtime.IStatus getRawArtifact(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor, OutputStream destination, org.eclipse.core.runtime.IProgressMonitor monitor)
descriptor
- the key and format of the artifact to transferdestination
- the stream to write the raw artifact tomonitor
- a progress monitor, or null
Copyright © 2008–2014 Eclipse Foundation. All rights reserved.