:: 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.
|
Exported Interfaces - Details |
XContentProvider
- Description
- provides two types of contents: Stream and Folder.
PCP Contents
-
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.
-
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
Copyright © 2010 Sun Microsystems, Inc.