Search in sources :

Example 1 with NotesMasterDocument

use of org.openxmlformats.schemas.presentationml.x2006.main.NotesMasterDocument in project poi by apache.

the class XSLFNotesMaster method prototype.

private static CTNotesMaster prototype() {
    InputStream is = XSLFNotesMaster.class.getResourceAsStream("notesMaster.xml");
    if (is == null) {
        throw new POIXMLException("Missing resource 'notesMaster.xml'");
    }
    try {
        try {
            NotesMasterDocument doc = NotesMasterDocument.Factory.parse(is, DEFAULT_XML_OPTIONS);
            CTNotesMaster slide = doc.getNotesMaster();
            return slide;
        } finally {
            is.close();
        }
    } catch (Exception e) {
        throw new POIXMLException("Can't initialize NotesMaster", e);
    }
}
Also used : CTNotesMaster(org.openxmlformats.schemas.presentationml.x2006.main.CTNotesMaster) InputStream(java.io.InputStream) NotesMasterDocument(org.openxmlformats.schemas.presentationml.x2006.main.NotesMasterDocument) POIXMLException(org.apache.poi.POIXMLException) XmlException(org.apache.xmlbeans.XmlException) IOException(java.io.IOException) POIXMLException(org.apache.poi.POIXMLException)

Aggregations

IOException (java.io.IOException)1 InputStream (java.io.InputStream)1 POIXMLException (org.apache.poi.POIXMLException)1 XmlException (org.apache.xmlbeans.XmlException)1 CTNotesMaster (org.openxmlformats.schemas.presentationml.x2006.main.CTNotesMaster)1 NotesMasterDocument (org.openxmlformats.schemas.presentationml.x2006.main.NotesMasterDocument)1