Package org.apache.poi

Examples of org.apache.poi.POIDocument


       assertEquals("", si.getAuthor());
       assertEquals("Cour de Justice", dsi.getCompany());
      
      
       // Write out and read back, should still be valid
       POIDocument doc = new HPSFPropertiesOnlyDocument(fs);
       ByteArrayOutputStream baos = new ByteArrayOutputStream();
       doc.write(baos);
       ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
       doc = new HPSFPropertiesOnlyDocument(new POIFSFileSystem(bais));
      
       // Check properties are still there
       assertEquals("Microsoft Word 10.0", si.getApplicationName());
View Full Code Here


       assertEquals("", si.getAuthor());
       assertEquals("Cour de Justice", dsi.getCompany());
      
      
       // Write out and read back, should still be valid
       POIDocument doc = new HPSFPropertiesOnlyDocument(fs);
       ByteArrayOutputStream baos = new ByteArrayOutputStream();
       doc.write(baos);
       ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
       doc = new HPSFPropertiesOnlyDocument(new POIFSFileSystem(bais));
      
       // Check properties are still there
       assertEquals("Microsoft Word 10.0", si.getApplicationName());
View Full Code Here

TOP

Related Classes of org.apache.poi.POIDocument

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.