diff options
author | Nick Burch <nick@apache.org> | 2013-11-12 09:55:46 +0000 |
---|---|---|
committer | Nick Burch <nick@apache.org> | 2013-11-12 09:55:46 +0000 |
commit | f138584877dba92f2d54525aab22fbdf20f20d6a (patch) | |
tree | b114869ec3cf60ad6b1f3564e25fce9b09c78e26 /src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java | |
parent | 1e0b6afd1b0452a507abc922a23fc06660ed33e0 (diff) | |
download | poi-f138584877dba92f2d54525aab22fbdf20f20d6a.tar.gz poi-f138584877dba92f2d54525aab22fbdf20f20d6a.zip |
More JavaDoc tweaks, and suppress deprecated warnings where these are expected
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1540989 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java')
-rw-r--r-- | src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java b/src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java index fc3ababa53..33fd241eda 100644 --- a/src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java +++ b/src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java @@ -58,8 +58,9 @@ public final class ZipPackage extends Package { private final ZipEntrySource zipArchive; /** - * Constructor. Creates a new ZipPackage. + * Constructor. Creates a new, empty ZipPackage. */ + @SuppressWarnings("deprecation") public ZipPackage() { super(defaultPackageAccess); this.zipArchive = null; @@ -77,6 +78,7 @@ public final class ZipPackage extends Package { * 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( @@ -85,7 +87,7 @@ public final class ZipPackage extends Package { } /** - * 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. @@ -94,6 +96,7 @@ public final class ZipPackage extends Package { * @throws InvalidFormatException * If the content type part parsing encounters an error. */ + @SuppressWarnings("deprecation") ZipPackage(String path, PackageAccess access) { super(access); @@ -110,7 +113,7 @@ public final class ZipPackage extends Package { } /** - * 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. @@ -119,6 +122,7 @@ public final class ZipPackage extends Package { * @throws InvalidFormatException * If the content type part parsing encounters an error. */ + @SuppressWarnings("deprecation") ZipPackage(File file, PackageAccess access) { super(access); @@ -146,7 +150,8 @@ public final class ZipPackage extends Package { * @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; } |