public class ReferencePackage extends AbstractDistributionPackage
DistributionPackage providing a reference to it
by its DistributionPackage.getId().PACKAGES_ROOT| Constructor and Description |
|---|
ReferencePackage(DistributionPackage distributionPackage) |
| Modifier and Type | Method and Description |
|---|---|
void |
acquire(String... holderNames)
acquire a reference to this package and increase the reference count.
|
void |
close()
closes all resources associated with this instance
|
InputStream |
createInputStream()
creates a package stream.
|
void |
delete()
releases all resources associated with this package
|
String |
getDigestAlgorithm() |
String |
getDigestMessage() |
String |
getId()
get package id.
|
long |
getSize() |
String |
getType()
get the type of package
|
static String |
idFromReference(String reference) |
static boolean |
isReference(String string) |
void |
release(String... holderNames)
release a reference to this package and decrease the reference count.
|
getInfopublic ReferencePackage(DistributionPackage distributionPackage)
public void acquire(@Nonnull String... holderNames)
SharedDistributionPackagepublic void release(@Nonnull String... holderNames)
SharedDistributionPackageDistributionPackage#delete method will be invoked.@Nonnull public InputStream createInputStream() throws IOException
DistributionPackageInputStreamIOExceptionpublic long getSize()
public void close()
DistributionPackagepublic void delete()
DistributionPackage@Nonnull public String getType()
DistributionPackagegetType in interface DistributionPackagegetType in class AbstractDistributionPackage@Nonnull public String getId()
DistributionPackagegetId in interface DistributionPackagegetId in class AbstractDistributionPackage@Nullable public String getDigestAlgorithm()
getDigestAlgorithm in class AbstractDistributionPackagepublic String getDigestMessage()
getDigestMessage in class AbstractDistributionPackagepublic static boolean isReference(String string)
@CheckForNull public static String idFromReference(String reference)
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.