Package org.apache.poi.xslf
Class XSLFParser
java.lang.Object
org.apache.poi.xslf.XSLFParser
Methods that wrap
XMLSlideShow parsing functionality.
One difference is that the methods in this class try to
throw XSLFReadException or IOException instead of RuntimeException.
You can still get an Errors like an OutOfMemoryError.- Since:
- 5.5.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic XMLSlideShowParse the given InputStream and return a newXMLSlideShowinstance.static XMLSlideShowparse(InputStream stream) Parse the given InputStream and return a newXMLSlideShowinstance.static XMLSlideShowparse(InputStream stream, boolean closeStream) Parse the given InputStream and return a newXMLSlideShowinstance.static XMLSlideShowparse(OPCPackage pkg) Parse the givenOPCPackageand return a newXMLSlideShowinstance.static XMLSlideShowparse(PackagePart packagePart) Parse the givenPackagePartand return a newXMLSlideShowinstance.
-
Method Details
-
parse
Parse the given InputStream and return a newXMLSlideShowinstance.- Parameters:
stream- the data to parse (will be closed after parsing)- Returns:
- a new
XMLSlideShowinstance - Throws:
XSLFReadException- if an error occurs while reading the fileIOException- if an I/O error occurs while reading the file
-
parse
public static XMLSlideShow parse(InputStream stream, boolean closeStream) throws XSLFReadException, IOException Parse the given InputStream and return a newXMLSlideShowinstance.- Parameters:
stream- the data to parsecloseStream- whether to close the InputStream after parsing- Returns:
- a new
XMLSlideShowinstance - Throws:
XSLFReadException- if an error occurs while reading the fileIOException- if an I/O error occurs while reading the file
-
parse
Parse the given InputStream and return a newXMLSlideShowinstance.- Parameters:
file- to parse- Returns:
- a new
XMLSlideShowinstance - Throws:
XSLFReadException- if an error occurs while reading the file
-
parse
Parse the givenOPCPackageand return a newXMLSlideShowinstance.- Parameters:
pkg- to parse- Returns:
- a new
XMLSlideShowinstance - Throws:
XSLFReadException- if an error occurs while reading the file
-
parse
Parse the givenPackagePartand return a newXMLSlideShowinstance.- Parameters:
packagePart- to parse- Returns:
- a new
XMLSlideShowinstance - Throws:
XSLFReadException- if an error occurs while reading the fileIOException- if an I/O error occurs while reading the file
-