highlight some exceptions

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1895912 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2021-12-13 17:55:30 +00:00
parent 065537fb02
commit b68a4b7eff
1 changed files with 13 additions and 0 deletions

View File

@ -105,6 +105,12 @@ public class XMLSlideShow extends POIXMLDocument
this(empty());
}
/**
* @param pkg OPC package
* @throws POIXMLException a RuntimeException that can be caused by invalid OOXML data
* @throws RuntimeException a number of other runtime exceptions can be thrown, especially if there are problems with the
* input format
*/
public XMLSlideShow(OPCPackage pkg) {
super(pkg);
@ -120,6 +126,13 @@ public class XMLSlideShow extends POIXMLDocument
}
}
/**
* @param is InputStream
* @throws IOException
* @throws POIXMLException a RuntimeException that can be caused by invalid OOXML data
* @throws RuntimeException a number of other runtime exceptions can be thrown, especially if there are problems with the
* input format
*/
public XMLSlideShow(InputStream is) throws IOException {
this(PackageHelper.open(is));
}