Class ArtifactTransferPolicyBase
- java.lang.Object
-
- org.eclipse.tycho.repository.p2base.artifact.provider.formats.ArtifactTransferPolicy
-
- org.eclipse.tycho.repository.p2base.artifact.provider.formats.ArtifactTransferPolicyBase
-
- Direct Known Subclasses:
LocalArtifactTransferPolicy,RemoteArtifactTransferPolicy
abstract class ArtifactTransferPolicyBase extends ArtifactTransferPolicy
-
-
Constructor Summary
Constructors Constructor Description ArtifactTransferPolicyBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidinsertCanonicalAndPacked(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.-
Methods inherited from class org.eclipse.tycho.repository.p2base.artifact.provider.formats.ArtifactTransferPolicy
isCanonicalFormat, isPack200Format
-
-
-
-
Method Detail
-
sortFormatsByPreference
public final java.util.List<org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor> sortFormatsByPreference(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor[] artifactDescriptors)
Description copied from class:ArtifactTransferPolicySorts a list of artifact formats by the order in which they should be tried to be used for a (non-raw) artifact read operation.- Specified by:
sortFormatsByPreferencein classArtifactTransferPolicy- Returns:
- the list of formats, sorted by preference
-
insertCanonicalAndPacked
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.- Parameters:
canonical- The canonical descriptor to be inserted in preferred order, ornullif the list to be sorted did not contain a canonical descriptor.packed- The packed descriptor to be inserted in preferred order, ornullif 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).
-
-