public class HPSFPropertiesOnlyDocument extends POIDocument
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 fileConstructor and Description |
---|
HPSFPropertiesOnlyDocument(POIFSFileSystem fs) |
Modifier and Type | Method and Description |
---|---|
void |
write()
Write out to the currently open file the properties changes, but nothing else
|
void |
write(java.io.File newFile)
Write out, with any properties changes, but nothing else
|
void |
write(java.io.OutputStream out)
Write out, with any properties changes, but nothing else
|
clearDirectory, close, createInformationProperties, getDirectory, getDocumentSummaryInformation, getEncryptedPropertyStreamName, getEncryptionInfo, getPropertySet, getPropertySet, getSummaryInformation, initDirectory, readProperties, replaceDirectory, validateInPlaceWritePossible, writeProperties, writeProperties, writeProperties
public HPSFPropertiesOnlyDocument(POIFSFileSystem fs)
public void write() throws java.io.IOException
write
in class POIDocument
java.io.IOException
- thrown on errors writing to the filepublic void write(java.io.File newFile) throws java.io.IOException
write
in class POIDocument
newFile
- The new File to write to.java.io.IOException
- thrown on errors writing to the filepublic void write(java.io.OutputStream out) throws java.io.IOException
write
in class POIDocument
out
- The stream to write to.java.io.IOException
- thrown on errors writing to the streamCopyright 2021 The Apache Software Foundation or its licensors, as applicable.