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()
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
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.