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 file
(POIDocument 的一个版本,它允许访问 HPSF 属性,但不允许访问其他文档内容。通常在您想要读取或更改文档属性时使用,而不影响文件的其余部分)
Constructor 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
(写在类 POIDocument)
java.io.IOException
- thrown on errors writing to the file
(java.io.IOException - 写入文件出错时抛出)
public void write(java.io.File newFile) throws java.io.IOException
write
in class
POIDocument
(写在类 POIDocument)
newFile
- The new File to write to.
(newFile - 要写入的新文件。)
java.io.IOException
- thrown on errors writing to the file
(java.io.IOException - 写入文件出错时抛出)
public void write(java.io.OutputStream out) throws java.io.IOException
write
in class
POIDocument
(写在类 POIDocument)
out
- The stream to write to.
(out - 要写入的流。)
java.io.IOException
- thrown on errors writing to the stream
(java.io.IOException - 写入流时抛出错误)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.