abstract class ArtifactTransferPolicyBase extends ArtifactTransferPolicy
| Constructor and Description |
|---|
ArtifactTransferPolicyBase() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
insertCanonicalAndPacked(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor canonical,
org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor packed,
java.util.LinkedList<org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor> list)
Inserts the canonical and packed descriptor in preferred order.
|
java.util.List<org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor> |
sortFormatsByPreference(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor[] artifactDescriptors)
Sorts a list of artifact formats by the order in which they should be tried to be used for a
(non-raw) artifact read operation.
|
isCanonicalFormat, isPack200Formatpublic final java.util.List<org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor> sortFormatsByPreference(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor[] artifactDescriptors)
ArtifactTransferPolicysortFormatsByPreference in class ArtifactTransferPolicyprotected abstract void insertCanonicalAndPacked(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor canonical,
org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor packed,
java.util.LinkedList<org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor> list)
canonical - The canonical descriptor to be inserted in preferred order, or null
if the list to be sorted did not contain a canonical descriptor.packed - The packed descriptor to be inserted in preferred order, or null if
the list to be sorted did not contain a packed descriptor.list - All other descriptors from the list to be sorted. To be completed by the canonical
and packed descriptors (if available).