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 © 2012, The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.