(incubating) | The Free and Open Productivity Suite

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

:: com :: sun :: star :: ucb ::

service PackageContentProvider
Description
The Package Content Provider (PCP) implements a ContentProvider for the UniversalContentBroker (UCB).

It provides access to packages ( zip / jar archive files ) containing folders and streams.

See also
Content

Exported Interfaces - Summary
XContentProvider

provides two types of contents: Stream and Folder. (details)

Exported Interfaces - Details
XContentProvider
Description
provides two types of contents: Stream and Folder.

PCP Contents

  1. A PCP Stream (PackageStreamContent) is a content which represents a file inside a package. It is always contained in a PCP Folder. A PCP Stream has no children.
  2. A PCP Folder (PackageFolderContent) is a container for other PCP Folders and PCP Streams.

URL Scheme for PCP Contents

Each HCP content has an identifier corresponding to the following scheme:

  • package-URL = "vnd.sun.star.pkg://" orig-URL [ abs-path ]
  • abs-path = "/" path-segments
  • path-segements = segment *( "/" segment )
  • segment = pchar
  • pchar = unreserved | escaped | ":" | "@" | "&" | "=" | "+" | "$" | ","
  • unreserved = alphanum | mark
  • mark = "-" | "_" | "." | "!" | "~" | "*" | "'" | "(" | ")"
  • escaped = "%" hex hex
  • orig-URL = 1 *( unreserved | escaped | "$" | "," | ";" | ":" | "@" | "&" | "&" | "=" | "+"

Examples:

  • vnd.sun.star.pkg://file:%2F%2F%2Fe:%2Fmy.xsw/ ( The root folder of the package located at file:///e:/my.xsw )
  • vnd.sun.star.pkg://file:%2F%2F%2Fe:%2Fmy.xsw/Content ( The folder/stream named "Content" that is contained in the root folder of the located at file:///e:/my.xsw )
  • vnd.sun.star.pkg://file:%2F%2F%2Fe:%2Fmy.xsw/Content%20A ( The folder/stream named "Content A" that is contained in the root folder of the located at file:///e:/my.xsw )


 
Top of Page

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Copyright & License
Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.