public final class XSLFParser extends Object
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.| Modifier and Type | Method and Description |
|---|---|
static XMLSlideShow |
parse(File file)
Parse the given InputStream and return a new
XMLSlideShow instance. |
static XMLSlideShow |
parse(InputStream stream)
Parse the given InputStream and return a new
XMLSlideShow instance. |
static XMLSlideShow |
parse(InputStream stream,
boolean closeStream)
Parse the given InputStream and return a new
XMLSlideShow instance. |
static XMLSlideShow |
parse(OPCPackage pkg)
Parse the given
OPCPackage and return a new XMLSlideShow instance. |
static XMLSlideShow |
parse(PackagePart packagePart)
Parse the given
PackagePart and return a new XMLSlideShow instance. |
public static XMLSlideShow parse(InputStream stream) throws XSLFReadException, IOException
XMLSlideShow instance.stream - the data to parse (will be closed after parsing)XMLSlideShow instanceXSLFReadException - if an error occurs while reading the fileIOException - if an I/O error occurs while reading the filepublic static XMLSlideShow parse(InputStream stream, boolean closeStream) throws XSLFReadException, IOException
XMLSlideShow instance.stream - the data to parsecloseStream - whether to close the InputStream after parsingXMLSlideShow instanceXSLFReadException - if an error occurs while reading the fileIOException - if an I/O error occurs while reading the filepublic static XMLSlideShow parse(File file) throws XSLFReadException
XMLSlideShow instance.file - to parseXMLSlideShow instanceXSLFReadException - if an error occurs while reading the filepublic static XMLSlideShow parse(OPCPackage pkg) throws XSLFReadException
OPCPackage and return a new XMLSlideShow instance.pkg - to parseXMLSlideShow instanceXSLFReadException - if an error occurs while reading the filepublic static XMLSlideShow parse(PackagePart packagePart) throws XSLFReadException, IOException
PackagePart and return a new XMLSlideShow instance.packagePart - to parseXMLSlideShow instanceXSLFReadException - if an error occurs while reading the fileIOException - if an I/O error occurs while reading the file