public class FileDistributionPackage extends AbstractDistributionPackage
DistributionPackage based on a File.| Modifier and Type | Class and Description |
|---|---|
class |
FileDistributionPackage.PackageInputStream |
PACKAGES_ROOT| Constructor and Description |
|---|
FileDistributionPackage(@NotNull File file,
@NotNull String type,
@Nullable String digestAlgorithm,
@Nullable String digestMessage) |
| 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
|
File |
getFile() |
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 File getFile()
public void acquire(@NotNull
String... holderNames)
SharedDistributionPackagepublic void release(@NotNull
String... holderNames)
SharedDistributionPackageDistributionPackage#delete method will be invoked.Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.