Package org.odftoolkit.simple.Document

Examples of org.odftoolkit.simple.Document.OdfMediaType


  @Test
  public void testLoadDocumentResource() throws Exception {
    try {
      TextDocument tdocument = TextDocument.loadDocument(ResourceUtilities.getAbsolutePath("headerFooterHidden.odt"));
      Assert.assertNotNull(tdocument);
      OdfMediaType odfMediaB = tdocument.getOdfMediaType();
      Assert.assertEquals("application/vnd.oasis.opendocument.text", odfMediaB.getMediaTypeString());
    } catch (Exception e) {
      LOG.log(Level.SEVERE, e.getMessage(), e);
      Assert.fail(e.getMessage());
    }
   
View Full Code Here


    try {
      String filePath = ResourceUtilities.getAbsolutePath("headerFooterHidden.odt");
      File file = new File(filePath);
      TextDocument tdocument = TextDocument.loadDocument(file);
      Assert.assertNotNull(tdocument);
      OdfMediaType odfMediaB = tdocument.getOdfMediaType();
      Assert.assertEquals("application/vnd.oasis.opendocument.text", odfMediaB.getMediaTypeString());
    } catch (Exception e) {
      LOG.log(Level.SEVERE, e.getMessage(), e);
      Assert.fail(e.getMessage());
    }
   
View Full Code Here

TOP

Related Classes of org.odftoolkit.simple.Document.OdfMediaType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.