public class ResourceDistributionPackage extends AbstractDistributionPackage
Resource based DistributionPackagePACKAGES_ROOT| 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
|
@NotNull InputStream |
createInputStream()
creates a package stream.
|
void |
delete()
releases all resources associated with this package
|
boolean |
disposable() |
long |
getSize() |
void |
release(String... holderNames)
release a reference to this package and decrease the reference count.
|
getDigestAlgorithm, getDigestMessage, getId, getInfo, getType@NotNull public @NotNull InputStream createInputStream() throws IOException
DistributionPackageInputStreamIOExceptionpublic long getSize()
public void close()
DistributionPackagepublic void delete()
DistributionPackagepublic void acquire(@NotNull
String... holderNames)
SharedDistributionPackagepublic void release(@NotNull
String... holderNames)
SharedDistributionPackageDistributionPackage#delete method will be invoked.public boolean disposable()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.