public class InMemoryDistributionPackage extends Object implements DistributionPackage
| Constructor and Description |
|---|
InMemoryDistributionPackage(String id,
String type,
byte[] data) |
| 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
|
@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 DistributionPackageCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.