Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: star :: packages ::

service PackageStream
Description
This service represents a stream contained within a Package. Instances of this class can only be constructed by the implementation of the Package service.

Exported Interfaces - Summary
::com::sun::star::container::XNamed

This sets or gets the name of the Stream as contained within its parent PackageFolder.

::com::sun::star::container::XChild

getParent returns the PackageFolder that the PackageStream is in. This may be the root PackageFolder. setParent moves a PackageStream.

::com::sun::star::io::XActiveDataSink

getInputStream provides read access to the contents of this PackageStream. If this PackageStream was a member of the Package when it was instantiated, the XInputStream returned is a Reference to the stream of the whole Package, with limits set on where it can seek to and read from. If the PackageStream is a new addition to the package, then getInputStream returns a Reference to the XInputStream which was specified with setInputStream. setInputStream - provides a stream to the data contained in the PackageStream this must be specified for new PackageStreams added to the Package. If this is called more than once, it will replace the existing stream.

::com::sun::star::beans::XPropertySet

This interface provides access to the properties of the package entry. Currently, this supports three entries: 1. Size, describing the uncompressed size of PackageStream. 2. MediaType, a string describing the MIME type of the stream. 3. Compress, a boolean flag to specify whether or not to compress this PackageStream.

Exported Interfaces - Details
::com::sun::star::container::XNamed
Description
This sets or gets the name of the Stream as contained within its parent PackageFolder.
::com::sun::star::container::XChild
Description
getParent returns the PackageFolder that the PackageStream is in. This may be the root PackageFolder. setParent moves a PackageStream.
::com::sun::star::io::XActiveDataSink
Description
getInputStream provides read access to the contents of this PackageStream. If this PackageStream was a member of the Package when it was instantiated, the XInputStream returned is a Reference to the stream of the whole Package, with limits set on where it can seek to and read from. If the PackageStream is a new addition to the package, then getInputStream returns a Reference to the XInputStream which was specified with setInputStream. setInputStream - provides a stream to the data contained in the PackageStream this must be specified for new PackageStreams added to the Package. If this is called more than once, it will replace the existing stream.
::com::sun::star::beans::XPropertySet
Description
This interface provides access to the properties of the package entry. Currently, this supports three entries: 1. Size, describing the uncompressed size of PackageStream. 2. MediaType, a string describing the MIME type of the stream. 3. Compress, a boolean flag to specify whether or not to compress this PackageStream.

 
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.