Top Description Constructors Methods
org.apache.poi.hpsf

public Class HPSFPropertiesOnlyDocument

extends POIDocument
Class Inheritance
Imports
java.io.File, .IOException, .OutputStream, java.util.ArrayList, .List, org.apache.poi.POIDocument, org.apache.poi.poifs.filesystem.EntryUtils, .FilteringDirectoryNode, .POIFSFileSystem

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

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
write()

Implements abstract org.apache.poi.POIDocument.write.

Write out to the currently open file the properties changes, but nothing else

public void
write(File
The new File to write to.
newFile
)

Implements abstract org.apache.poi.POIDocument.write.

Write out, with any properties changes, but nothing else

public void
write(OutputStream
The stream to write to.
out
)

Implements abstract org.apache.poi.POIDocument.write.

Write out, with any properties changes, but nothing else

private void
Inherited from org.apache.poi.POIDocument:
clearDirectoryclosecreateInformationPropertiesgetDirectorygetDocumentSummaryInformationgetEncryptedPropertyStreamNamegetEncryptionInfogetPropertySetgetPropertySetgetSummaryInformationinitDirectoryreadPropertiesreadPropertiesreplaceDirectoryvalidateInPlaceWritePossiblewritePropertieswritePropertieswriteProperties

Constructor Detail

HPSFPropertiesOnlyDocumentback to summary
public HPSFPropertiesOnlyDocument(POIFSFileSystem fs)

Method Detail

writeback to summary
public void write() throws IOException

Implements abstract org.apache.poi.POIDocument.write.

Write out to the currently open file the properties changes, but nothing else

Annotations
@Override
Exceptions
IOException:

Doc from org.apache.poi.POIDocument.write.

thrown on errors writing to the file

writeback to summary
public void write(File newFile) throws IOException

Implements abstract org.apache.poi.POIDocument.write.

Write out, with any properties changes, but nothing else

Parameters
newFile:File

Doc from org.apache.poi.POIDocument.write.

The new File to write to.

Annotations
@Override
Exceptions
IOException:

Doc from org.apache.poi.POIDocument.write.

thrown on errors writing to the file

writeback to summary
public void write(OutputStream out) throws IOException

Implements abstract org.apache.poi.POIDocument.write.

Write out, with any properties changes, but nothing else

Parameters
out:OutputStream

Doc from org.apache.poi.POIDocument.write.

The stream to write to.

Annotations
@Override
Exceptions
IOException:

Doc from org.apache.poi.POIDocument.write.

thrown on errors writing to the stream

writeback to summary
private void write(POIFSFileSystem fs) throws IOException