public class DistributionPackageWrapper extends Object implements DistributionPackage
Modifier | Constructor and Description |
---|---|
protected |
DistributionPackageWrapper(DistributionPackage wrappedPackage) |
Modifier and Type | Method and Description |
---|---|
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
|
@NotNull String |
getId()
get package id.
|
@NotNull DistributionPackageInfo |
getInfo()
gets an additional info holder for this package.
|
long |
getSize() |
@NotNull String |
getType()
get the type of package
|
DistributionPackage |
getWrappedPackage() |
protected DistributionPackageWrapper(DistributionPackage wrappedPackage)
@NotNull public @NotNull String getId()
DistributionPackage
getId
in interface DistributionPackage
@NotNull public @NotNull String getType()
DistributionPackage
getType
in interface DistributionPackage
@NotNull public @NotNull InputStream createInputStream() throws IOException
DistributionPackage
createInputStream
in interface DistributionPackage
InputStream
IOException
public long getSize()
getSize
in interface DistributionPackage
public void close()
DistributionPackage
close
in interface DistributionPackage
public void delete()
DistributionPackage
delete
in interface DistributionPackage
@NotNull public @NotNull DistributionPackageInfo getInfo()
DistributionPackage
getInfo
in interface DistributionPackage
public DistributionPackage getWrappedPackage()
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.