|
|
The Package Content ProviderPrefaceThe Package Content Provider ( PCP ) implements a Content Provider for the Universal Content Broker (UCB). It provides access to the content of ZIP/JAR archive files. Possibly it will be extended to support other packages ( like OLE storages ) in the future. PCP ContentsThe PCP provides two different types of contents: Stream and Folder.
|
|
|
UCB Type (returned by XContent::getContentType ) |
Properties |
Commands |
Interfaces |
|---|---|---|---|---|
|
Stream |
application/vnd.sun.star.pkg-stream |
[readonly] ContentType [readonly] IsDocument [readonly] IsFolder MediaType [readonly] Size Title Compressed1 |
getCommandInfo getPropertySetInfo getPropertyValues setPropertyValues insert delete open |
lang::XTypeProvider, lang::XServiceInfo, lang::XComponent, ucb::XContent, ucb::XCommandProcessor, beans::XPropertiesChangeNotifier, beans::XPropertyContainer, beans::XPropertySetInfoChangeNotifier, ucb::XCommandInfoChangeNotifier, container::XChild |
|
Folder |
application/vnd.sun.star.pkg-folder |
[readonly] ContentType [readonly] IsDocument [readonly] IsFolder MediaType [readonly] Size Title |
getCommandInfo getPropertySetInfo getPropertyValues setPropertyValues insert delete open transfer2 flush3 |
same as PCP Stream plus ucb::XContentCreator |
1The property "Compressed" is introduced by package streams. It allows you to explecitly state whether you want a stream to be compressed or not. The default value of this property will be determined according to the value suggested by the underlying packager implementation.
2The transfer command only transfers PCP-folders/-streams to other PCP folders. It does not handle contents with a URL scheme other then the PCP-URL-scheme.
3"flush" is a command introduced by the PCP Folder. It takes a void-argument and returns void. This command is used to write unsaved changes to the underlying package file. Note that the current implementation of PCP contents never flush automatically! Operations, which require a flush to get persistent, are: "setPropertyValues( Title | MediaType ) ", "delete", "insert".



