private final ZipEntrySource zipArchive;
/**
- * Constructor. Creates a new ZipPackage.
+ * Constructor. Creates a new, empty ZipPackage.
*/
+ @SuppressWarnings("deprecation")
public ZipPackage() {
super(defaultPackageAccess);
this.zipArchive = null;
* If the specified input stream not an instance of
* ZipInputStream.
*/
+ @SuppressWarnings("deprecation")
ZipPackage(InputStream in, PackageAccess access) throws IOException {
super(access);
this.zipArchive = new ZipInputStreamZipEntrySource(
}
/**
- * Constructor. Opens a Zip based Open XML document from a File.
+ * Constructor. Opens a Zip based Open XML document from a file.
*
* @param path
* The path of the file to open or create.
* @throws InvalidFormatException
* If the content type part parsing encounters an error.
*/
+ @SuppressWarnings("deprecation")
ZipPackage(String path, PackageAccess access) {
super(access);
}
/**
- * Constructor. Opens a Zip based Open XML document.
+ * Constructor. Opens a Zip based Open XML document from a File.
*
* @param file
* The file to open or create.
* @throws InvalidFormatException
* If the content type part parsing encounters an error.
*/
+ @SuppressWarnings("deprecation")
ZipPackage(File file, PackageAccess access) {
super(access);
* @throws InvalidFormatException
* If the content type part parsing encounters an error.
*/
- ZipPackage(ZipEntrySource zipEntry, PackageAccess access) {
+ @SuppressWarnings("deprecation")
+ ZipPackage(ZipEntrySource zipEntry, PackageAccess access) {
super(access);
this.zipArchive = zipEntry;
}