public class ResourceDistributionPackage extends AbstractDistributionPackage
Resource
based DistributionPackage
PACKAGES_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
DistributionPackage
InputStream
IOException
public long getSize()
public void close()
DistributionPackage
public void delete()
DistributionPackage
public void acquire(@NotNull String... holderNames)
SharedDistributionPackage
public void release(@NotNull String... holderNames)
SharedDistributionPackage
DistributionPackage#delete
method will be invoked.public boolean disposable()
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.