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-segments = 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 © 1995, 2012, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.