*** empty log message ***
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353352 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
85570b5c07
commit
24de462cba
@ -54,19 +54,11 @@
|
|||||||
*/
|
*/
|
||||||
package org.apache.poi.hpsf.examples;
|
package org.apache.poi.hpsf.examples;
|
||||||
|
|
||||||
import java.io.FileOutputStream;
|
import java.io.*;
|
||||||
import java.io.IOException;
|
|
||||||
import java.io.InputStream;
|
|
||||||
|
|
||||||
import org.apache.poi.hpsf.MutableProperty;
|
import org.apache.poi.hpsf.*;
|
||||||
import org.apache.poi.hpsf.MutablePropertySet;
|
import org.apache.poi.hpsf.wellknown.*;
|
||||||
import org.apache.poi.hpsf.MutableSection;
|
import org.apache.poi.poifs.filesystem.*;
|
||||||
import org.apache.poi.hpsf.SummaryInformation;
|
|
||||||
import org.apache.poi.hpsf.Variant;
|
|
||||||
import org.apache.poi.hpsf.WritingNotSupportedException;
|
|
||||||
import org.apache.poi.hpsf.wellknown.PropertyIDMap;
|
|
||||||
import org.apache.poi.hpsf.wellknown.SectionIDMap;
|
|
||||||
import org.apache.poi.poifs.filesystem.POIFSFileSystem;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>This class is a simple sample application showing how to create a property
|
* <p>This class is a simple sample application showing how to create a property
|
||||||
@ -99,7 +91,6 @@ public class WriteTitle
|
|||||||
}
|
}
|
||||||
|
|
||||||
final String fileName = args[0];
|
final String fileName = args[0];
|
||||||
final POIFSFileSystem poiFs = new POIFSFileSystem();
|
|
||||||
|
|
||||||
/* Create a mutable property set. Initially it contains a single section
|
/* Create a mutable property set. Initially it contains a single section
|
||||||
* with no properties. */
|
* with no properties. */
|
||||||
@ -122,6 +113,9 @@ public class WriteTitle
|
|||||||
p.setType(Variant.VT_LPWSTR);
|
p.setType(Variant.VT_LPWSTR);
|
||||||
p.setValue("Sample title");
|
p.setValue("Sample title");
|
||||||
|
|
||||||
|
/* Create the POI file system the property set is to be written to. */
|
||||||
|
final POIFSFileSystem poiFs = new POIFSFileSystem();
|
||||||
|
|
||||||
/* For writing the property set into a POI file system it has to be
|
/* For writing the property set into a POI file system it has to be
|
||||||
* handed over to the POIFS.createDocument() method as an input stream
|
* handed over to the POIFS.createDocument() method as an input stream
|
||||||
* which produces the bytes making out the property set stream. */
|
* which produces the bytes making out the property set stream. */
|
||||||
|
Loading…
Reference in New Issue
Block a user