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()
DistributionPackagegetId in interface DistributionPackage@NotNull public @NotNull String getType()
DistributionPackagegetType in interface DistributionPackage@NotNull public @NotNull InputStream createInputStream() throws IOException
DistributionPackagecreateInputStream in interface DistributionPackageInputStreamIOExceptionpublic long getSize()
getSize in interface DistributionPackagepublic void close()
DistributionPackageclose in interface DistributionPackagepublic void delete()
DistributionPackagedelete in interface DistributionPackage@NotNull public @NotNull DistributionPackageInfo getInfo()
DistributionPackagegetInfo in interface DistributionPackagepublic DistributionPackage getWrappedPackage()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.