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(File file,
String type) |
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
|
File |
getFile() |
long |
getSize() |
void |
release(String[] holderNames)
release a reference to this package and decrease the reference count.
|
getId, getInfo, getType
@Nonnull public InputStream createInputStream() throws IOException
DistributionPackage
InputStream
IOException
public long getSize()
public void close()
DistributionPackage
public void delete()
DistributionPackage
public File getFile()
public void acquire(@Nonnull String[] holderNames)
SharedDistributionPackage
public void release(@Nonnull String[] holderNames)
SharedDistributionPackage
DistributionPackage#delete
method is called.Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.