ConnectContent provides a Framework instance access to the
content of a ConnectModule.
A framework may open and close the content
for a ConnectModule multiple times while the ConnectContent
is in use by the framework. The framework must close the
ConnectContent once the ConnectContent is no longer used as
the content of a current bundle revision or an in use bundle revision.
An entry in a ConnectContent is identified by a path name that is a
solidus ('/' /) separated path. A ConnectContent
may treat directories as entries. A directory entry path name will end with a
solidus. A directory entry may be located using a path name that omits the
trailing solidus.
BundleRevisions
| Modifier and Type | Class and Description |
|---|---|
| public static interface | ConnectContent.
Represents the entry of a |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | TAG_OSGI_CONNECT
The |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Optional | Returns: AnOptional containing the class loader for this
ConnectContent, or an empty Optional if framework
should handle creating a class loader for the bundle revision
associated with this ConnectContent.Returns a class loader for this |
| public Iterable | Returns: AnIterable which can supply the available entry names.Returns the entry names available in this |
| public Optional | Returns: AnOptional containing the ConnectEntry for the
specified path, or an empty Optional if no entry for
specified path can be found.The path name of the entry. path)Returns the |
| public Optional | Returns: AnOptional containing the Manifest headers and values
for this ConnectContent, or an empty Optional if
the framework should handle parsing the Manifest of the content
itself.Returns the Manifest headers and values of this |
| public void |
| TAG_OSGI_CONNECT | back to summary |
|---|---|
| public static final String TAG_OSGI_CONNECT The | |
| close | back to summary |
|---|---|
| public void close() throws IOException Closes this
| |
| getClassLoader | back to summary |
|---|---|
| public Optional Returns a class loader for this
This method is called by the framework for
| |
| getEntries | back to summary |
|---|---|
| public Iterable Returns the entry names available in this
| |
| getEntry | back to summary |
|---|---|
| public Optional Returns the
The
| |
| getHeaders | back to summary |
|---|---|
| public Optional Returns the Manifest headers and values of this
| |
| open | back to summary |
|---|---|
| public void open() throws IOException Opens this
The framework will open the content when it needs to access the content
for a bundle revision associated with this
| |
ConnectContent.
| Modifier and Type | Method and Description |
|---|---|
| public default byte[] | |
| public long | Returns: The content length of the entry, or-1 if the content
length is not known.Returns the content length of this entry. |
| public InputStream | Returns: An input stream for the content of this entry.Returns an input stream for the content of this entry. |
| public long | Returns: The last modification time of this entry measured in milliseconds since the epoch (00:00:00 GMT, January 1, 1970).Returns the last modification time of this entry. |
| public String |
| getBytes | back to summary |
|---|---|
| public default byte[] getBytes() throws IOException Returns the content of this entry.
| |
| getContentLength | back to summary |
|---|---|
| public long getContentLength() Returns the content length of this entry.
| |
| getInputStream | back to summary |
|---|---|
| public InputStream getInputStream() throws IOException Returns an input stream for the content of this entry.
| |
| getLastModified | back to summary |
|---|---|
| public long getLastModified() Returns the last modification time of this entry.
| |
| getName | back to summary |
|---|---|
| public String getName() Returns the path name of this entry.
| |