Package org.apache.poi.hpsf
Class HPSFPropertiesOnlyDocument
java.lang.Object
org.apache.poi.POIDocument
org.apache.poi.hpsf.HPSFPropertiesOnlyDocument
- All Implemented Interfaces:
Closeable,AutoCloseable
A version of
POIDocument which allows access to the
HPSF Properties, but no other document contents.
Normally used when you want to read or alter the Document Properties,
without affecting the rest of the file-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidwrite()Write out to the currently open file the properties changes, but nothing elsevoidWrite out, with any properties changes, but nothing elsevoidwrite(OutputStream out) Write out, with any properties changes, but nothing elseMethods inherited from class org.apache.poi.POIDocument
clearDirectory, close, createInformationProperties, getDirectory, getDocumentSummaryInformation, getEncryptedPropertyStreamName, getEncryptionInfo, getPropertySet, getPropertySet, getSummaryInformation, initDirectory, readProperties, replaceDirectory, validateInPlaceWritePossible, writeProperties, writeProperties, writeProperties
-
Constructor Details
-
HPSFPropertiesOnlyDocument
-
-
Method Details
-
write
Write out to the currently open file the properties changes, but nothing else- Specified by:
writein classPOIDocument- Throws:
IOException- thrown on errors writing to the file
-
write
Write out, with any properties changes, but nothing else- Specified by:
writein classPOIDocument- Parameters:
newFile- The new File to write to.- Throws:
IOException- thrown on errors writing to the file
-
write
Write out, with any properties changes, but nothing else- Specified by:
writein classPOIDocument- Parameters:
out- The stream to write to.- Throws:
IOException- thrown on errors writing to the stream
-