Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.10

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: 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 Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.