@Unstable public class XarPackage extends Object
| Constructor and Description |
|---|
XarPackage() |
XarPackage(Collection<XarEntry> entries) |
XarPackage(File file) |
XarPackage(InputStream xarStream) |
XarPackage(org.apache.commons.compress.archivers.zip.ZipFile zipFile) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEntry(LocalDocumentReference reference) |
Collection<XarEntry> |
getEntries() |
static Collection<XarEntry> |
getEntries(File file) |
XarEntry |
getEntry(LocalDocumentReference reference) |
String |
getPackageAuthor() |
String |
getPackageDescription() |
String |
getPackageExtensionId() |
String |
getPackageLicense() |
String |
getPackageName() |
String |
getPackageVersion() |
boolean |
isPackageBackupPack() |
boolean |
isPackagePreserveVersion() |
void |
read(InputStream xarStream) |
void |
read(org.apache.commons.compress.archivers.zip.ZipFile zipFile) |
void |
readDescriptor(InputStream stream) |
void |
setPackageAuthor(String packageAuthor) |
void |
setPackageBackupPack(boolean packageBackupPack) |
void |
setPackageDescription(String packageDescription) |
void |
setPackageExtensionId(String packageExtensionId) |
void |
setPackageLicense(String packageLicense) |
void |
setPackageName(String packageName) |
void |
setPackageVersion(String packageVersion) |
void |
setPreserveVersion(boolean preserveVersion) |
void |
write(OutputStream stream,
String encoding) |
void |
write(org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream zipStream,
String encoding) |
public XarPackage()
public XarPackage(org.apache.commons.compress.archivers.zip.ZipFile zipFile)
throws XarException,
IOException
XarExceptionIOExceptionpublic XarPackage(File file) throws IOException, XarException
IOExceptionXarExceptionpublic XarPackage(InputStream xarStream) throws IOException, XarException
IOExceptionXarExceptionpublic XarPackage(Collection<XarEntry> entries)
public void read(InputStream xarStream) throws IOException, XarException
IOExceptionXarExceptionpublic void read(org.apache.commons.compress.archivers.zip.ZipFile zipFile)
throws IOException,
XarException
IOExceptionXarExceptionpublic String getPackageExtensionId()
public void setPackageExtensionId(String packageExtensionId)
public boolean isPackagePreserveVersion()
public void setPreserveVersion(boolean preserveVersion)
public String getPackageName()
public void setPackageName(String packageName)
public String getPackageDescription()
public void setPackageDescription(String packageDescription)
public String getPackageLicense()
public void setPackageLicense(String packageLicense)
public String getPackageAuthor()
public void setPackageAuthor(String packageAuthor)
public String getPackageVersion()
public void setPackageVersion(String packageVersion)
public boolean isPackageBackupPack()
public void setPackageBackupPack(boolean packageBackupPack)
public void addEntry(LocalDocumentReference reference)
public Collection<XarEntry> getEntries()
public static Collection<XarEntry> getEntries(File file) throws XarException, IOException
XarExceptionIOExceptionpublic XarEntry getEntry(LocalDocumentReference reference)
public void readDescriptor(InputStream stream) throws XarException, IOException
XarExceptionIOExceptionpublic void write(org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream zipStream,
String encoding)
throws XarException,
IOException
XarExceptionIOExceptionpublic void write(OutputStream stream, String encoding) throws XarException, IOException
XarExceptionIOExceptionCopyright © 2004–2015 XWiki. All rights reserved.