public class LocalArtifactTransferPolicy extends ArtifactTransferPolicy
ArtifactTransferPolicy optimized for artifacts stored in the local file system. A
provider with this policy will use the canonical format (if available) when asked for an
artifact, avoiding unnecessary pack200 decompression operations.| Constructor and Description |
|---|
LocalArtifactTransferPolicy() |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor |
pickFormat(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor[] formats)
Returns the preferred format to be used for a (non-raw) artifact read operation.
|
isCanonicalFormat, isPack200Formatpublic org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor pickFormat(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor[] formats)
throws IllegalArgumentException
ArtifactTransferPolicypickFormat in class ArtifactTransferPolicyformats - the list of raw artifact formats available from a providerIllegalArgumentException - if the list of formats is emptyCopyright © 2008-2013 Eclipse Foundation. All Rights Reserved.